/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  font-size: 18px;
}

header {
  background: #0d1b2a;
  color: white;
  padding: 20px 40px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 28px;
}

.hero {
  height: 300px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #2a2b29;
  margin-top: 30px;
  border-left: 4px solid #f3c308;
  padding-left: 10px;
}

h3 {
  margin-top: 20px;
  color: #f3c308;
}

.type-h3 {
  color: #2a2b29;
}

p {
  margin: 15px 0;
}

ul {
  margin: 10px 0 20px 20px;
}

li {
  margin-bottom: 8px;
}

.highlight-box {
  background: #fffdee;
  padding: 20px;
  border-left: 5px solid #f3c308;
  border-radius: 5px;
  margin: 25px 0;
}

.cta {
  background: url("../images/about.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 40px;
  border-radius: 6px;
  position: relative;
}

/* 🔥 DARK OVERLAY (IMPORTANT) */
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* adjust darkness */
  z-index: 1;
}

.button {
  position: relative; /* keep above overlay */
  z-index: 2;
  background: #f3c308;
  color: #2a2b29;
  text-decoration: none;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 15px;
}

.button:hover {
  background: #e0b007;
  color: #222;
}

/* Keep content above overlay */
.cta h3,
.cta p {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  header h1 {
    font-size: 22px;
  }
}

/* ===== NEW BLOG LAYOUT ===== */

.blog-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
}

.blog-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
}

.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.sidebar-box {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-box h3 {
  margin-bottom: 10px;
  color: #2a2b29;
}

.sidebar-box a {
  display: block;
  margin: 6px 0;
  text-decoration: none;
  color: #333;
}

.sidebar-box a:hover {
  color: #f3c308;
}

/* TOC */
.toc a {
  font-size: 14px;
}

/* Product CTA inside blog */
.product-box {
  background: #fffdee;
  padding: 20px;
  border-left: 5px solid #f3c308;
  margin: 25px 0;
}

/* Mobile */
@media (max-width: 900px) {
  .blog-wrapper {
    grid-template-columns: 1fr;
  }
}

 /* BLOG PAGE DESIGN */
      .blog-page {
        max-width: 1200px;
        margin: 40px auto;
        padding: 20px;
      }

      .blog-page h1 {
        text-align: center;
        margin-bottom: 30px;
      }

      .blog-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
      }

      .blog-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: 0.3s;
      }

      .blog-card:hover {
        transform: translateY(-5px);
      }

      .blog-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
      }

      .blog-card-content {
        padding: 20px;
      }

      .blog-card h3 {
        margin-bottom: 10px;
        color: #2a2b29;
      }

      .blog-card p {
        font-size: 15px;
      }

      .read-more {
        display: inline-block;
        margin-top: 10px;
        color: #f3c308;
        text-decoration: none;
        font-weight: bold;
      }

      .read-more:hover {
        text-decoration: underline;
      }

      @media (max-width: 900px) {
        .blog-grid {
          grid-template-columns: 1fr;
        }
      }
