/* About Section Styles */

#about-section {
  padding: 60px 20px;
  background-color: #ddffd0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.about-text {
  flex: 1 1 500px;
}

.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #161716;
  margin-bottom: 10px;
}

#about-us-section {
  scroll-margin-top: 90px; 
  padding-top: 30px; 
}
/* Custom gradient underline for About Us in AboutPage only */
.about-title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.about-title-underline::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #56ab2f, #a8e063);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}


.about-subtitle {
  font-size: 1.75rem;
  color: #495057;
  margin-bottom: 20px;
}

.about-paragraph {
  font-size: 18px;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 16px;
  text-align: justify;
}

.about-image-container {
  flex: 1 1 400px;
  text-align: center;
}

.about-image {
  margin-top: 70px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Video full-width above About Section */
.about-hero-video {
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* Force full screen width */
  margin-bottom: 40px;
}

.about-hero-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.about-hero-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default: no top margin */
.about-hero-video {
  margin-top: 0;
}

/* For mobile and tablet screens */
@media (max-width: 991px) {
  .about-hero-video {
    margin-top: 25px; /* Adjust this value as needed */
  }
}




@media (max-width: 768px) {
  .about-hero-video-wrapper {
    padding-top: 50%; /* slightly taller for mobile */
  }
}

/* WHY VEIYON SECTION  */
/* === WHY VEIYON SECTION === */
.why-veiyon-section {
  margin-top: 60px;
  padding: 20px 10px; /* tighter side padding on mobile */
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Heading */
.why-veiyon-heading {
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

/* Underline */
.why-veiyon-heading::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #56ab2f, #a8e063);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Flex layout for points */
.why-veiyon-points {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* reduced gap for smaller screens */
  max-width: 1100px;
}

/* Point items */
.why-veiyon-points li {
  font-size: 18px;
  color: #6c757d;
  font-weight: 600;
  padding: 10px 16px;
  border-left: 4px solid #56ab2f;
  min-width: 220px;
  text-align: left;
  background: none;
  box-sizing: border-box;
}

/* Checkmark before each point */
.why-veiyon-points li::before {
  content: "✔";
  color: #56ab2f;
  font-weight: bold;
  margin-right: 8px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .why-veiyon-heading {
    font-size: 2rem;
  }

  .why-veiyon-points {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .why-veiyon-points li {
    min-width: auto;
    width: 90%;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .why-veiyon-heading {
    font-size: 1.75rem;
  }

  .why-veiyon-points li {
    width: 100%;
    padding: 8px 12px;
  }
}
.certification-section {
  padding: 40px 20px;
  text-align: center;
  background: #f9f9f9;
}

.certification-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 30%;
  transform: scale(0.9);
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
}

.carousel-slide.active {
  transform: scale(1.05);
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: black;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.2);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 80%;
  }
}




.industries-we-serve-section {
  background-color: transparent; /* light green */
  padding: 60px 20px;
  text-align: center;
}

.industries-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1b5e20; /* deep green */
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 1000px;
}

.industries-grid li {
  background: #ffffff;
  padding: 20px;
  border-left: 4px solid #43a047; /* green accent */
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  color: #2e7d32;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industries-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}




/* === SOLAR EPC SECTION === */
#solar-epc-section {
  padding: 40px 10px; /* Minimal horizontal padding */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.solar-epc-title h2 {
  font-size: 34px;
  font-weight: bold;
  color: #222;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.solar-epc-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #4caf50;
  margin: 10px auto 0;
  border-radius: 2px;
}



/* Circle card - size preserved */
.solar-epc-card {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ddd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #444;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 10px; /* Reduced padding */
  margin: 0; /* Removed margin */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.solar-epc-card:hover {
  border-color: #4caf50;
  color: #4caf50;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* Default: 1 card per row for small screens */
.solar-epc-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column */
  gap: 10px;
  justify-items: center;
  padding: 0 5px;
}

/* Medium and larger screens: 3 cards per row */
@media (min-width: 768px) {
  .solar-epc-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
  }
}


/* === ELECTRICAL SERVICES SECTION === */
#electrical-services {
  background: #ddffd0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 40px 0;
}

#electrical-services .container {
  padding-inline: 20px; /* horizontal padding */
  max-width: 1200px;
  margin: 0 auto;
}

#electrical-services .section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  position: relative;
  display: inline-block;
  margin: 0 auto 50px;
  color: #222;
}

#electrical-services .section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #4caf50;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Grid Layout */
.electrical-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .electrical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .electrical-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Card */
.electrical-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff, #f2fef4);
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden;
  font-weight: 600;
  color: #222;
}

.electrical-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.electrical-card .hover-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.4s ease;
}

.electrical-card:hover .hover-line {
  width: 100%;
}
#electrical-services .section-title {
  text-align: center; /* Ensure container-level center alignment */
  margin-bottom: 50px;
}

#electrical-services .section-title h2 {
  font-size: 32px;
  font-weight: bold;
  color: #222;
  position: relative;
  display: inline-block;
}

#electrical-services .section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #4caf50;
  margin: 8px auto 0;
  border-radius: 2px;
}





/* VISION and MISSION Section Styles */
.vision-section,
.mission-section {
  margin-top: 60px;
  padding: 20px;
  background-color: #ffffff;
  border-left: 5px solid #56ab2f;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.vision-heading,
.mission-heading {
  font-size: 2rem;
  color: #016b15;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

/* Gradient underline effect */
.vision-heading::after,
.mission-heading::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #56ab2f, #a8e063);
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.vision-paragraph,
.mission-paragraph {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

/* Fade-in animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-up.delay {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Default: Visible on large screens */
.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #016b15;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatDown 1.6s ease-in-out infinite;
  z-index: 10;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-down-arrow:hover {
  background-color: #019b25;
  transform: translateY(5px);
}

.arrow-icon {
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

@keyframes floatDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Hide on small and medium screens */
@media (max-width: 991.98px) {
  .scroll-down-arrow {
    display: none;
  }
}


/* Section Styling */
.solar-epc-flowchart-section {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  width: 100%;
}

/* Heading Style */
.solar-epc-heading {
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}
.solar-epc-heading::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #56ab2f, #a8e063);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Flowchart Layout */
.flowchart-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: auto;
}

/* Step Box */
.flow-step {
  background: #e9f7ec;
  color: #56ab2f;
  font-size: 18px;
  font-weight: 600;
  border-left: 4px solid #56ab2f;
  padding: 16px 20px;
  border-radius: 6px;
  min-width: 240px;
  text-align: left;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Arrows */
.flow-arrow {
  font-size: 24px;
  color: #56ab2f;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Arrow Types */
.flow-arrow.right::before {
  content: "→";
}
.flow-arrow.down::before {
  content: "↓";
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default hide all arrow helpers */
.flow-arrow,
.large-only,
.medium-up {
  display: none;
}

/* Responsive Layouts */

/* Small Screens (1 per row, vertical arrows) */
@media (max-width: 767px) {
  .flowchart-grid {
    flex-direction: column;
  }

  .flow-step {
    width: 90%;
  }

  .flow-arrow.down {
    display: block;
  }

  .flow-arrow.right::before {
    content: "↓";
  }

  .flow-arrow {
    display: block;
    transform: rotate(0deg);
  }
}

/* Medium Screens (2 per row) */
@media (min-width: 768px) and (max-width: 1023px) {
  .flowchart-grid {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .flow-step {
    width: calc(45% - 10px);
  }

  .flow-arrow.right {
    display: block;
  }

  .medium-up {
    display: block;
  }

  .large-only {
    display: none;
  }
}

/* Large Screens (3-2 layout) */
@media (min-width: 1024px) {
  .flowchart-grid {
    display: grid;
    grid-template-columns: repeat(5, auto);
    grid-template-rows: auto auto;
    gap: 20px;
    justify-content: center;
  }

  .flowchart-grid > .flow-step:nth-child(1) { grid-column: 1; grid-row: 1; }
  .flowchart-grid > .flow-arrow:nth-child(2) { grid-column: 2; grid-row: 1; }
  .flowchart-grid > .flow-step:nth-child(3) { grid-column: 3; grid-row: 1; }
  .flowchart-grid > .flow-arrow:nth-child(4) { grid-column: 4; grid-row: 1; }
  .flowchart-grid > .flow-step:nth-child(5) { grid-column: 5; grid-row: 1; }

  .flowchart-grid > .flow-arrow.down { 
    grid-column: 3; 
    grid-row: 2;
    justify-self: center;
    display: block;
  }

  .flowchart-grid > .flow-step:nth-child(7) { grid-column: 2; grid-row: 3; }
  .flowchart-grid > .flow-arrow:nth-child(8) { grid-column: 3; grid-row: 3; display: block; }
  .flowchart-grid > .flow-step:nth-child(9) { grid-column: 4; grid-row: 3; }

  .flow-arrow.right {
    display: block;
  }
}


/* === CERTIFICATION SECTION === */
.certification-section {
  padding: 80px 20px;
  background: transparent;
  position: relative;
  text-align: center;
  z-index: 1;
}

.certification-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.05), transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(0, 150, 136, 0.05), transparent 50%);
  z-index: 0;
}

.certification-title {
  font-size: 36px;
  font-weight: 800;
  color: #2e7d32;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.certification-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #43a047;
  margin: 10px auto 0;
  border-radius: 2px;
}

.certification-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;         /* Enables responsive wrapping */
  gap: 20px;               /* Adds spacing between images */
}

.certification-image {
  max-width: 100%;
  width: 400px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  border: 4px solid #c8e6c9;
  background: #fff;
  transition: transform 0.3s ease;
}

.certification-image:hover {
  transform: scale(1.02);
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
  .certification-image {
    width: 100%;
    max-width: 90%;
  }
}


/* === General Section Styling === */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

/* === Video Section Styling === */
.success-video-section {
  padding: 100px 20px 60px;
  background-color: #f8f9fa;
}

.center-video {
  display: flex;
  justify-content: center;
}

.video-wrapper {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.scroll-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* === Gallery Section === */
.success-section {
  padding: 40px 20px;
  background: #ddffd0; 
}

.scroll-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scroll-horizontal 120s linear infinite;
}

.scroll-item {
  flex: 0 0 auto;
  margin: 0 10px;
  position: relative;
}

.image-slide img {
  height: 280px;
  width: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #e0e0e0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.scroll-caption {
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 8px;
  color: #14532d; /* dark green text */
}

/* Animation */
@keyframes scroll-horizontal {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .image-slide img {
    width: 250px;
    height: 180px;
  }

  .scroll-caption {
    font-size: 1rem;
  }

  .video-wrapper {
    max-width: 100%;
  }
}
.center-video {
  display: flex;
  justify-content: center;
}



/* Fix for hidden heading under navbar */
#service-page {
  text-align: center; /* center text inside */
}

.service-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center; /* center the cards horizontally */
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 20px; /* some spacing below cards */
}

.service-card-vertical {
  flex: 0 0 calc(100% / 6 - 12.5px);
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 350px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  align-items: center; /* center content inside card */
  text-align: center;  /* center text inside card */
}

.service-desc-vertical h3,
.service-desc-vertical p {
  margin-left: 0; /* remove any left margin */
}

.learn-more-container {
  margin-top: 30px;
  text-align: center; /* center button */
}

.services-wrapper {
  text-align: center;
  padding-top: 80px;
  background-color: #f9f9f9;
  padding-left: 1rem;
  padding-right: 1rem;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  grid-auto-rows: 1fr; /* Ensures equal height for all grid items */
}

.services-item {
  display: flex;
  justify-content: center;
}

.services-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures the card takes full height of the grid row */
}

.services-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(28, 130, 28, 0.5); /* Dark green glow */
}

.services-image {
  width: 100%;
  height: 200px;
  object-fit: cover; 
}

.services-description {
  padding: 1.5rem;
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-description h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222;
}

.services-description p {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-description h3 {
    font-size: 1.5rem;
  }

  .services-description p {
    font-size: 1rem;
  }

  .services-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}





.on-grid-solar-page {
  padding: 100px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  
}

/* OnGridSolarPowerPage.css */
#ongoing-projects {
  background-color: #ddffd0;
  
}


.on-grid-solar-page {
  padding: 2rem;
  margin-top: 80px; /* Adjust based on your navbar's height */
  
}


.on-grid-solar-content {
  display: flex;
  flex-direction: row; /* Default to row */
  align-items: flex-start;
  gap: 50px; /* Space between columns */
  padding: 1rem;
  margin-top: 2rem;
}

.on-grid-solar-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.on-grid-solar-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


.on-grid-solar-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solar-points-list {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.solar-point {
  font-size: 16px; /* Set font size to 16px */
  line-height: 1.6;
  color: #006400; /* Dark green color */
  margin-bottom: 1rem;
  font-weight: bold;
}

.solar-point::marker {
  font-size: 1.5em;
  font-weight: bold;
  color: #006400;
}

/* Responsive layout for small to medium screens */
@media screen and (max-width: 768px) {
  .on-grid-solar-content {
    flex-direction: column;
    align-items: center;
  }

  .on-grid-solar-image,
  .on-grid-solar-text {
    width: 100%;
  }

  .on-grid-solar-image {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* Container for the entire products page */
.products-page {
  padding: 100px 20px 40px; /* Adjust top padding to accommodate fixed navbar */
  max-width: 1200px;
  margin: 0 auto;
}

/* Heading with green gradient underline */
.products-heading {
  position: relative;
  font-size: 2.5rem;
  text-align: center;
  color: #221f1f !important;
  margin-bottom: 50px;
}

.products-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, #00c853, #64dd17);
  border-radius: 2px;
}

/* Container for all product cards */
.products-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Individual product card with horizontal layout */
.product-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1500px;
  background-color: #ebfce4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 300px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Product image occupying half the card width */
.product-image {
  flex: 1 1 100%;
  height: auto;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product details occupying the remaining half */
.product-details {
  flex: 1 1 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-details h3 {
  margin: 0 0 15px;
  font-size: 2rem; /* Increased font size for title */
  color: #333333;
}

.product-details p {
  margin: 0 0 25px;
  padding-top: 20px;
  font-size: 1.7rem; 
  color: #555555;
  line-height: 1.6;
  text-align: justify;
}

/* Contact Us button */
.contact-button {
  align-self: flex-start;
  padding: 12px 24px;
  background-color: #00c853;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #64dd17;
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
  }

  .product-image,
  .product-details {
    flex: 1 1 100%;
  }

  .product-image {
    height: 200px;
  }
}

.solar-pump-table {
  font-size: 13px; /* or 12px if you want it smaller */
}

.scrollable-table-container {
  max-height: 450px; /* Adjust height as needed */
  overflow-y: auto;
  margin-top: 1rem;
}

.vertical-scroll {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 1rem;
}


.category-table {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-table th,
.category-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  font-size: 16px;
}

.category-table th {
  background-color: #4caf50;
  color: white;
  font-size: 18px;
}

.category-table td ul {
  padding-left: 20px;
  margin: 0;
}

.category-table td ul li {
  margin-bottom: 6px;
}

.category-table {
  margin-left: auto;
  margin-right: auto;
  display: table;
}

.on-grid-solar-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Dialog styles */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.dialog-box {
  margin-top: 90px;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.dialog-box h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.dialog-box p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.close-button {
  margin-top: 20px;
  float: right;
}

/* Optional animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ Responsive dialog box only (small and medium screens) */
@media (max-width: 768px) {
  .dialog-box {
    padding: 20px;
    max-width: 90%;
    font-size: 0.95rem;
  }

  .dialog-box h3 {
    font-size: 1.3rem;
  }

  .dialog-box p {
    font-size: 0.95rem;
  }

  .category-table {
    font-size: 14px;
  }

  .category-table th,
  .category-table td {
    padding: 12px;
  }

  .close-button {
    float: none;
    width: 100%;
    text-align: center;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .dialog-box {
    padding: 16px;
    font-size: 0.9rem;
  }

  .dialog-box h3 {
    font-size: 1.1rem;
  }

  .dialog-box p {
    font-size: 0.85rem;
  }

  .category-table {
    font-size: 12px;
  }

  .category-table th,
  .category-table td {
    padding: 10px;
  }

  .close-button {
    float: none;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  .dialog-box {
    margin-top: 100px; /* Higher top margin on smaller screens */
    padding: 20px;      /* Slightly smaller padding for better fit */
  }

  .dialog-box h3 {
    font-size: 1.2rem;  /* Smaller heading */
  }

  .dialog-box p {
    font-size: 0.95rem; /* Smaller paragraph font */
  }

  .category-table {
    max-width: 100%;
    font-size: 14px;
  }

  .category-table th,
  .category-table td {
    padding: 12px;
    font-size: 14px;
  }
}
