* {
  box-sizing:content-box;
}

.category-hero {
  position: relative;
  width: 100%;
  height: 400px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure the image doesn't overflow */
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the entire area */
  z-index: -1; /* Places the image behind the overlay */
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for contrast */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay h1 {
  color: #fff;
  font-size: 3rem;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px 40px;
  border-radius: 10px;
  text-align: center;
}

.hero-content p {
  color: #fff;
  font-size: 1.2rem;
}

/* Breadcrumb Styles */
.breadcrumb {
  padding: 10px 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
  margin: 20px auto;
  width: 70%; /* Match the width of .category-page */
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb li {
  display: inline-block;
  margin: 0 5px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb li:not(:last-child)::after {
  content: "›"; /* Add a separator between breadcrumb items */
  margin-left: 10px;
  color: #666;
}

.breadcrumb a {
  color: #0b175f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #0b175f;
}

.category-page {
    padding: 20px;
    text-align: center;
    width: 90%;
    margin: 0 auto;
  }
  
  .page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
  }
  
  .page-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    justify-items: center;
  }
  
  .product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    transition: transform 0.3s ease;
  }

  
  .product-card:hover {
    transform: translateY(-5px);
  }
  
  .product-image {
    width: 100%;
    height: 180px;
    padding: 10px;
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 1rem;
  }

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
  width: 100%;
}

.product-title,
.product-description,
.product-button {
  margin: 0;
  padding: 0 0.5rem;
}
.product-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
}
.product-description {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #333;
}
.product-button {
  display: inline-block;
  margin-top: auto;
  padding: 0.5rem 1rem;
  background-color: #0b175f;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}
.product-button:hover {
  background-color: #162db4;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.blog-section {
    padding: 40px 20px;
    text-align: center;
}

.blog-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.blog-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-card {
    text-decoration: none;
    color: #333;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    padding: 0 10px;
}

.blog-card p {
    font-size: 1rem;
    color: #666;
    padding: 0 10px;
}

@media (max-width: 600px) {
  .product-overlay {
    opacity: 1 !important; /* Always visible */
    background: rgba(0, 0, 0, 0.2);
    z-index: 0; /* Just behind the text, not behind the card */
  }

  .product-title,
  .product-description {
    position: relative;
    z-index: 1; /* On top of the overlay */
    color: #333;
    white-space: normal;
  }
  .product-button{
    color: #f8f9fa
  }

  /* Optional: Improve legibility on mobile */
  .product-card {
    background-color: #f8f9fa;
  }
}