/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: #fff;
  color: #222;
  overflow-x: clip;
}
/* Hero Section */

/* Product Card Images */
.product-card .product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.hero {
  position: relative;
  background: url('../images/HERO_05.jpg') no-repeat center center/cover;
  height: 70vh;   
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* overlay */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%; /* ensures content doesn't overflow */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  background: #00a86b;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background: #007f52;
}

/* ==========================================================================
   ENHANCED PRODUCT HERO SECTION (Clean, Modern, Solar-Themed)
   ========================================================================== */
.hero.product-hero {
  position: relative !important;
  min-height: unset !important;
  height: auto !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: #ffffff !important;
  padding: 65px 20px 85px 20px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Glassmorphic Gradient Overlay */
.product-hero .product-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(7, 27, 47, 0.90) 0%, rgba(13, 74, 85, 0.84) 50%, rgba(10, 61, 98, 0.88) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
}

/* Top-Left Breadcrumb Trail */
.product-hero-breadcrumb {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 5;
}

.product-hero-breadcrumb .breadcrumb-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.84rem;
  color: #e2e8f0;
}

.product-hero-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.25s ease;
}

.product-hero-breadcrumb a:hover {
  color: #ffb703;
}

.product-hero-breadcrumb .separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.product-hero-breadcrumb .current-slug {
  color: #ffb703;
  font-weight: 600;
}

/* Hero Content Wrapper */
.product-hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 10px auto 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Product Badge / Tag */
.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 183, 3, 0.45);
  color: #ffdd80;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-hero-badge i {
  color: #ffb703;
}

/* Hero Title */
.product-hero-title {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Hero Subtitle */
.product-hero-subtitle {
  font-size: clamp(0.98rem, 1.5vw, 1.15rem) !important;
  line-height: 1.7 !important;
  color: #f1f5f9 !important;
  max-width: 840px !important;
  margin: 0 auto 24px auto !important;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Key Value Highlights (Chips) */
.product-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #ffffff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.highlight-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffb703;
  transform: translateY(-2px);
}

.highlight-chip i {
  color: #ffb703;
  font-size: 0.85rem;
}

/* Action CTA Buttons */
.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.product-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.product-hero-btn.primary-btn {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  color: #071B2F !important;
  box-shadow: 0 4px 15px rgba(251, 133, 0, 0.35);
  border: none;
}

.product-hero-btn.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(251, 133, 0, 0.45);
  background: linear-gradient(135deg, #ffc324 0%, #ff951c 100%);
}

.product-hero-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-hero-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Product Hero Wave Divider */
.product-hero .divider {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  line-height: 0 !important;
  overflow: hidden !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.product-hero .divider-shape {
  display: block !important;
  width: 100% !important;
  height: 55px !important;
  fill: #ffffff !important;
}

/* Responsive Styles for Product Hero */
@media (max-width: 900px) {
  .hero.product-hero {
    min-height: auto !important;
    padding: 70px 18px 85px 18px !important;
  }

  .product-hero-breadcrumb {
    position: static !important;
    margin-bottom: 15px;
  }
}

@media (max-width: 600px) {
  .hero.product-hero {
    padding: 60px 15px 75px 15px !important;
  }

  .product-hero-breadcrumb .breadcrumb-inner {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .product-hero-title {
    font-size: 1.85rem !important;
  }

  .product-hero-subtitle {
    font-size: 0.92rem !important;
  }

  .product-hero-highlights {
    gap: 7px;
    margin-bottom: 20px;
  }

  .highlight-chip {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .product-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .product-hero-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
  }

  .product-hero .divider-shape {
    height: 38px !important;
  }
}

/* Divider Styles (Global Fallback) */
.divider {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.divider-shape {
  display: none; /* hide all by default */
  position: relative;
  width: 100%;
  height: 150px;
  fill: #d3d3d3; /* light gray color */
}
.divider .wave { display: block; }

/* General Section */
.product-section {
  padding: 80px 20px;
  background: #f9f9f9; /* subtle gray background */
  font-family: 'Poppins', sans-serif;
}

/* Grid Container */
.product-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  justify-content: center; /* centers the entire grid */
  grid-auto-rows: minmax(300px, auto); /* ensures equal row heights */
}

/* Optional: force second row cards to center */
.product-card:nth-child(n+4) {
  justify-self: center; /* centers 2nd row cards individually */
}

/* Individual Card */
.product-card {
  background: #fff; /* white background */
  border: 2px solid #0a3d62; /* red border for accent */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #222; /* dark text for readability */
  min-height: 300px;
  transform: translateY(30px);
  opacity: 0;
  animation: slideFadeIn 0.8s forwards;
}

/* Stagger animation delays for each card */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }

/* Hover Effect */
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(230, 57, 70, 0.2);
  transition: all 0.4s ease;
}

/* Slide-up + fade-in animation */
@keyframes slideFadeIn {
  0% {opacity: 0; transform: translateY(30px);}
  100% {opacity: 1; transform: translateY(0);}
}
/* Card Heading */
.product-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #0a3d62; /* red heading */
}

/* Card Description */
.product-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333; /* dark gray for paragraph */
}

/* Button Styling */
.product-card .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0a3d62; /* red button */
  color: #fff; /* white text */
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  align-self: flex-start;
}

.product-card .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
  background: #b8323f; /* darker red on hover */
}

/* ------------------------- */
/* RESPONSIVE DESIGN */
/* ------------------------- */
/* Large Desktops (≥1200px) */
@media (min-width: 1200px) {
  .product-container {
    grid-template-columns: repeat(3, minmax(350px, 1fr)); /* 3 wider cards per row */
    gap: 40px; /* increased gap for spacing */
    justify-content: center; /* keep grid centered */
  }

  .product-card {
    min-height: 350px; /* taller cards if needed */
  }

  .product-card h3 {
    font-size: 1.7rem; /* slightly larger heading */
  }

  .product-card p {
    font-size: 1rem;
  }
}

/* Standard Desktops (992px–1199px) */
@media (max-width: 1199px) {
  .product-container {
    grid-template-columns: repeat(3, minmax(300px, 1fr)); /* wider cards */
    gap: 35px;
    justify-content: center;
  }

  .product-card h3 {
    font-size: 1.5rem;
  }

  .product-card p {
    font-size: 0.95rem;
  }
}

/* Tablets (768px–991px) */
@media (max-width: 991px) {
  .product-section {
    padding: 60px 20px;
  }

  .product-container {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 25px;
  }

  .product-card {
    padding: 20px;
    min-height: auto;
  }

  .product-card h3 {
    font-size: 1.3rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .product-section {
    padding: 50px 15px;
  }

  .product-container {
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 20px;
  }

  .product-card {
    padding: 18px;
  }

  .product-card h3 {
    font-size: 1.25rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }

  .product-card .btn {
    font-size: 0.9rem;
    padding: 9px 18px;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .product-section {
    padding: 40px 12px;
  }

  .product-card {
    padding: 15px;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .product-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .product-card .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* Extra Small Mobile (≤360px) */
@media (max-width: 360px) {
  .product-card h3 {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.8rem;
  }

  .product-card .btn {
    font-size: 0.8rem;
    padding: 7px 14px;
  }
}

