/* ===================================================
   PRODUCTS.CSS — Gururaj Infradesigns
   Used by: products.html (main product listing page)
   =================================================== */

/* ===== PRODUCTS HERO ===== */
.products-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d2a3e 60%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
  margin-top: 100px;
  padding: 80px 0;
}

.products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2352aae5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.products-hero .container {
  position: relative;
  z-index: 2;
}

.products-hero-badge {
  display: inline-block;
  background: rgba(82, 170, 229, 0.15);
  border: 1px solid rgba(82, 170, 229, 0.4);
  color: #52aae5;
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.products-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.products-hero h1 span {
  color: #52aae5;
}

.products-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 15px auto 0;
}

@media (max-width: 991px) {
  .products-hero {
    padding: 60px 0;
  }

  .products-hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 767px) {
  .products-hero {
    padding: 50px 0;
  }

  .products-hero h1 {
    font-size: 1.9rem;
  }

  .products-hero p {
    font-size: 0.95rem !important;
  }

  .products-hero-badge {
    font-size: 0.75rem;
    padding: 5px 14px;
  }
}

@media (max-width: 480px) {
  .products-hero {
    padding: 40px 0;
  }

  .products-hero h1 {
    font-size: 1.5rem;
  }
}

/* ===== PRODUCT GRID CARDS ===== */
.pg-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-bottom: 4px solid #52aae5;
}

.pg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(82, 170, 229, 0.18);
}

.pg-featured {
  border-bottom-color: #1a3a5c;
}

.pg-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.pg-card:hover .pg-img {
  transform: scale(1.04);
}

.pg-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pg-badges {
  margin-bottom: 8px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pg-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  border-left: 4px solid #52aae5;
  padding-left: 10px;
  transition: color 0.3s ease;
}

.pg-card:hover .pg-body h4 {
  color: #52aae5;
}

.pg-body p {
  color: #666;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.pg-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}

.pg-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #444;
  padding: 4px 0;
  border-bottom: 1px solid #f5f5f5;
}

.pg-list li:last-child {
  border-bottom: none;
}

.pg-list li i {
  color: #52aae5;
  font-size: 1rem;
  flex-shrink: 0;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #52aae5;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.pg-btn:hover {
  background: #1a3a5c;
  color: #fff;
  transform: translateX(4px);
}

/* ===== RESPONSIVE CARDS ===== */
@media (max-width: 991px) {
  .pg-img {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .pg-img {
    height: 200px;
  }

  .pg-body {
    padding: 15px;
  }

  .pg-body h4 {
    font-size: 0.95rem;
  }

  .pg-list li {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .pg-img {
    height: 200px;
  }

  .pg-body {
    padding: 12px;
  }
}