/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.col-md-6 {
  width: 100%;
  text-align: left;
}

/* Blog List Styles */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.blog-image {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-title {
  transition: color 0.3s ease;
}

.blog-card:hover .card-title {
  color: #0d6efd;
}

/* Blog Article Styles */
.article-hero {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.blog-article {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-entry {
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.product-entry:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-features {
  list-style: none;
  padding-left: 0;
}

.product-features li {
  margin-bottom: 0.5rem;
}

/* Alternating layout for desktop */
@media (min-width: 768px) {
  .product-entry:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-image {
    height: 180px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .article-hero {
    height: 250px;
  }
  
  .product-entry {
    padding: 1rem;
  }
}

/* Small devices (phones) */
@media (max-width: 576px) {
  .blog-image {
    height: 160px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .blog-article {
    padding: 1.5rem;
  }
}

/* Blog Article Styles */
.article-hero {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.blog-article {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-entry {
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.product-entry:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-features {
  list-style: none;
  padding-left: 0;
}

.product-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.product-features li i {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.max-width-800 {
  max-width: 800px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-content .lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Alternating layout for desktop */
@media (min-width: 768px) {
  .product-entry:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* Responsive adjustments for article page */
@media (max-width: 768px) {
  .article-hero {
    height: 250px;
  }
  
  .product-entry {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .blog-article {
    padding: 1.5rem;
  }
  
  .blog-article h1 {
    font-size: 2rem;
  }
  
  .article-content .lead {
    font-size: 1.1rem;
  }
}

/* Small devices (phones) */
@media (max-width: 576px) {
  .article-hero {
    height: 200px;
  }
  
  .blog-article {
    padding: 1.25rem;
    border-radius: 10px;
  }
  
  .product-entry {
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
  }
  
  .blog-article h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .article-content {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .article-content .lead {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
  
  .product-features li {
    margin-bottom: 0.4rem;
  }
  
  /* Fix spacing for product entries on mobile */
  .product-entry .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .product-entry h2 {
    font-size: 1.4rem;
  }
  
  /* Make sure the back button is easy to tap */
  .btn-outline-secondary {
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Fix for images in product entries */
  .product-entry img {
    margin-bottom: 0.75rem !important;
  }
  
  /* Better spacing for the alert box */
  .alert {
    padding: 1rem;
    margin-top: 2rem !important;
  }
  
  .alert h3 {
    font-size: 1.2rem;
  }
}