/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f1f5f9;
  color: #1e293b;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* CSS Variables */
:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --accent: #fbbf24;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Category Header / Blog Header */
.blog-header,
.category-header {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.blog-header h1,
.category-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.blog-title {
  color: orangered;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0.5rem;
}
.breadcrumb li {
  position: relative;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: white;
}

/* Blog Listing */
.blog-listing {
  margin: 2rem 0;
}
.blog-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 768px) {
  .blog-card {
    flex-direction: row;
  }
}
.blog-card-img {
  flex: 1;
  height: 200px;
}
.blog-card-content {
  flex: 2;
  padding: 1.5rem;
}
.blog-meta {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}
.read-more {
  color: var(--primary);
  font-weight: 500;
  display: inline-block;
  margin-top: 1rem;
}

/* Blog Page */
.blog-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 3rem 0;
}
.blog-content {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.blog-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
}
.comparison-table th {
  background-color: var(--light);
  font-weight: 600;
}
.comparison-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Pros & Cons */
.product-review {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
}
.product-review h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.pros,
.cons {
  padding: 1rem;
  border-radius: 5px;
}
.pros {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
}
.cons {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

/* Buy Button */
.buy-now-btn {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}
.buy-now-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 20px;
}
.sidebar-widget {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.sidebar-widget h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}
.popular-posts li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.popular-posts li:last-child {
  border-bottom: none;
}
.popular-posts a {
  color: var(--dark);
  transition: all 0.3s ease;
}
.popular-posts a:hover {
  color: var(--primary);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  display: inline-block;
  background: #e2e8f0;
  color: var(--dark);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
.tag:hover {
  background: var(--primary);
  color: white;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--accent);
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: var(--gray);
  transition: all 0.3s ease;
}
.footer-col ul li a:hover {
  color: white;
}
.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    margin-top: 1rem;
    flex-direction: row;
    gap: 0px !important;
  }
  .blog-container,
  .pros-cons {
    grid-template-columns: 1fr;
  }
}
