:root {
  --primary: #0b1b7b;

  --secondary: #fbbf24;

  --text-dark: #111827;
  --text-light: #f3f4f6;
  --border: #d1d5db;
  --bg-white: #ffffff;
  --shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  --font: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

/* Navbar Base */
.navbar {
  width: 100%;
  background: var(--bg-white, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo img {
  width: 60px;
  height: auto;
}

/* Navigation Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-dark, #333);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary, #0078ff);
}

/* Toggle Icon */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  color: var(--text-dark, #333);
  transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease forwards;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }

  nav.active {
    display: flex;
  }
}

/* ================= DROPDOWN ================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 190px;
  list-style: none;
  padding: 10px 0;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 9999;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
}

/* Desktop hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu li a {
    padding: 12px 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: url("./assets/banner.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  /* full screen height */
  overflow: hidden;
  box-sizing: border-box;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  /* vertically align text & form */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  padding: 60px 20px;
  transform: translateY(6%);
}

/* HERO TEXT */
.hero-text {
  flex: 1 1 500px;
  color: #fff;
  text-align: left;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  width: 85%;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-yellow {
  display: inline-block;
  background: var(--secondary);
  color: var(--text-dark);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-yellow:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

/* FORM BOX */
.form-box {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 25px 28px;
  width: 100%;
  max-width: 350px;
  box-shadow: var(--shadow);
  color: var(--text-dark);
  flex-shrink: 0;
  z-index: 2;
}

.form-box h3 {
  font-size: 18px;
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 18px;
}

.form-box h3 span {
  color: var(--primary);
  font-weight: 700;
}

.form-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-box input,
.form-box select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.form-box input:focus,
.form-box select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(8, 20, 93, 0.2);
}

.form-box .note {
  font-size: 12px;
  color: #6b7280;
  text-align: left;
  margin-top: -5px;
}

.form-box button {
  background: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-box button:hover {
  background: #0a1970;
  transform: translateY(-2px);
}

.form-box .icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    padding: 100px 20px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(0);
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .form-box {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  .btn-yellow {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .form-box {
    width: 90%;
    max-width: 380px;
  }
}

/* Stats Section */
.stats-section {
  background: var(--bg-white);
  padding: 70px 20px;
  text-align: center;
}

.stats-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.description {
  font-size: 25px;
  color: var(--text-dark);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px;
}

.stats-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
  /* box-shadow: var(--shadow); */
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  top: -99px;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.stat p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.divider {
  width: 1px;
  height: 30px;
  background: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-row {
    flex-direction: column;
    gap: 20px;
    top: 0;
    /* reset for mobile */
  }

  .divider {
    display: none;
  }
}

/* Our Projects Section */
.projects-section {
  background: var(--bg-white);
  padding: 10px 20px;
  text-align: center;
}

.projects-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-items: center;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 280px;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 400px;
  height: 400px;
  border-radius: 20px;
  object-fit: fill;
  filter: grayscale(100%);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.project-card.active img {
  filter: grayscale(0%);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.project-overlay h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.active-content p {
  font-size: 13px;
  margin: 8px 0 15px;
  color: #f0f0f0;
  line-height: 1.5;
}

.learn-more {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.learn-more:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card img {
    height: 300px;
  }
}

@media (max-width: 500px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

* Solar Calculator Section */ .solar-calculator {
  background: #f9fafb;
  padding: 60px 0;
  font-family: "Inter", sans-serif;
}

.solar-calculator .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
}

.calculator-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.calculator-form,
.calculator-result {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  padding: 25px 30px;
  flex: 1 1 400px;
  max-width: 500px;
}
.calculator-result {
  background: url("./assets/solar-calculator.jpg") no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.calculator-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
}

.calculator-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #333;
}

.calculator-form input,
.calculator-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 18px;
}

.calculator-form input:focus,
.calculator-form select:focus {
  outline: none;
  border-color: #0a1970;
  box-shadow: 0 0 0 2px rgba(11, 142, 70, 0.15);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculate-btn {
  width: 100%;
  padding: 12px;
  background: #0a1970;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calculate-btn:hover {
  background: #0a1970;
}

.use-type {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 20px;
}

.use-type label {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  font-weight: 500;
  color: #444;
  gap: 6px;
  cursor: pointer;
}

.use-type input {
  margin-top: 3px;
  accent-color: #0a1970;
  display: flex;
  justify-content: center;

  gap: 6px;
}

.calculator-result h3 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a1970;
  margin-bottom: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-item label {
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.result-item input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}
.result-co2 {
  padding: 10px 0px;
}

.result-item input[readonly] {
  cursor: default;
}

@media (max-width: 768px) {
  .calculator-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}
/* TESTIMONIALS */
.testimonials {
  padding: 20px 20px;
  background: #fff;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials .section-title {
  font-size: 28px;
  color: #333;
  font-weight: 500;
  margin-bottom: 50px;
}

/* Wrapper with arrows */
.testimonial-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
}

/* Arrows */
.arrow-btn {
  width: 45px;
  height: 45px;
  border: 2px solid #0b1156;
  background: none;
  color: #0b1156;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.arrow-btn:hover {
  background: #0b1156;
  color: #fff;
}

/* Testimonial Card */
.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid #d1d5f9;
  border-radius: 12px;
  padding: 40px 50px 20px;
  max-width: 750px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: visible;
  /* 
  margin-top: 70px; */
}

.client-photo-box {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  border-radius: 12px;
  z-index: 2;
}

.client-photo-box .photo-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b1156;
  border-radius: 12px;
  z-index: 1;
}

.client-photo-box img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 10px;
  object-fit: cover;
  z-index: 2;
}

/* Content */
.testimonial-content {
  position: relative;
  text-align: center;
  color: #555;
}

.quote-icon {
  font-size: 40px;
  color: #0b1156;
  display: block;
  margin-bottom: 15px;
}

.quote-icon.end {
  margin-top: 10px;
}

.testimonial-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  max-width: 600px;
  margin: 0 auto 20px;
}

.testimonial-content h2 {
  font-weight: 600;
  color: #0b1156;
  font-size: 16px;
}

.company {
  font-size: 14px;
  color: #666;
}

/* Infinite Logo Slider */
.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 60px;
}

.logo-track {
  display: flex;
  width: calc(200%);
  animation: scroll 25s linear infinite;
}

.logo-track img {
  margin: 0 40px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: 0.3s;
  height: 40px;
}

.logo-track img:hover {
  filter: none;
  opacity: 1;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-wrapper {
    flex-direction: column;
  }

  .arrow-btn {
    position: static;
    margin: 15px 0;
  }

  .testimonial-card {
    padding: 80px 25px 35px;
  }

  .client-photo-box {
    width: 100px;
    height: 100px;
    top: -50px;
  }

  .logo-track img {
    margin: 0 25px;
  }
}

/*  Video Testimonials Section */
.video-testimonials {
  background: linear-gradient(to right, #eaf6fc, #e8f9f2, #fff1e3);
  padding: 100px 20px;
  font-family: "Poppins", sans-serif;
}

.section-title {
  font-size: 30px;
  color: #333;
  font-weight: 500;
  margin-bottom: 0px;
}

/* Layout */
.video-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Arrows */
.arrow-btn {
  width: 45px;
  height: 45px;
  border: 2px solid #0b1156;
  background: transparent;
  color: #0b1156;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.arrow-btn.left {
  left: -60px;
}

.arrow-btn.right {
  right: -60px;
}

.arrow-btn:hover {
  background: #0b1156;
  color: #fff;
}

/* Video + Text */
.video-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Video */
.video-box {
  position: relative;
  width: 640px;
  height: 380px;
  border-radius: 20px;

  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  z-index: 2;
  transform: translateX(-30px);
}

.video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.play-icon {
  font-size: 36px;
  color: #0b1156;
  margin-left: 3px;
}

.play-button:hover {
  background: #0b1156;
}

.play-button:hover .play-icon {
  color: #fff;
}

/* Testimonial Box */
.video-content {
  background: #fff;
  border-radius: 12px;
  padding: 35px 40px;
  text-align: left;
  width: 511px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  left: -80px;

  z-index: 3;
}

.video-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.video-content h4 {
  color: #0b1156;
  font-weight: 600;
  margin-bottom: 5px;
}

.designation {
  color: #777;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .video-card {
    flex-direction: column;
  }

  .video-content {
    position: relative;
    left: 0;
    width: 100%;
    margin-top: 20px;
  }

  .video-box {
    transform: none;
    width: 100%;
  }

  .arrow-btn.left,
  .arrow-btn.right {
    display: none;
  }
}

/* Contact Section */
.contact-section {
  background: url("./assets/contact-us.jpg") center/cover no-repeat;
  border-radius: 20px;
  max-width: 1100px;
  margin: 80px auto;
  padding: 60px 40px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.contact-container {
  position: relative;
  z-index: 2;
  text-align: left;
}

.contact-container h2 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.contact-form input,
.contact-form select {
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.form-check {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #fff;
}

.form-check input {
  margin-right: 10px;
  width: 16px;
  height: 16px;
}

.form-check a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
}

.btn-submit {
  background: #ffb400;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: fit-content;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #ff9f00;
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 20px 35px;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
}

/* Column Headings */
.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Text & Links */
.footer-col p,
.footer-col a {
  font-size: 15px;
  line-height: 1.6;
  color: #f3f4f6;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* SOCIAL ICONS */
.social-links {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.social-links img {
  width: 24px;
  height: 24px;
  transition: 0.3s;
}

.social-links img:hover {
  transform: scale(1.12);
  filter: brightness(120%);
}

/* ✅ ALIGNMENT FIX */
.footer-col:nth-child(1) {
  text-align: center;
}

/* Office */
.footer-col:nth-child(2) {
  text-align: center;
}

/* Warehouse */
.footer-col:nth-child(3) {
  text-align: center;
}

/* Contact */

.footer-col:nth-child(2) .social-links {
  justify-content: center;
}

.footer-col:nth-child(3) .social-links {
  justify-content: center;
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  margin-top: 35px;
  font-size: 14px;
  opacity: 0.85;
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
  .footer-col {
    text-align: center !important;
  }

  .social-links {
    justify-content: center !important;
  }
}

.why-solar {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
}

/* Heading */
.why-title {
  font-size: 30px;
  color: #333;
  font-weight: 500;
  margin-bottom: 50px;
}

/* Grid layout */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #ddd;
}

.grid-item {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ddd;
}

/* White section styling */
.white {
  background-color: #fff;
  color: #333;
}

/* Orange section styling */
.orange-bg {
  background-color: var(--primary);
  border-bottom: 1px solid var(--primary);
  color: #fff;
}

.orange-bg .icon img {
  filter: brightness(0) invert(1);
  /* optional for white icons */
}

/* Common styling */
.icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0px;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.item-text {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 500px;
}

.orange {
  color: var(--primary);
}

.white-text {
  color: #fff;
}

/* Responsive layout */
@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
  }

  .grid-item {
    border-right: 1px solid #ddd;
    border-bottom: none;
  }

  .orange-bg {
    border-right: 1px solid var(--text-dark);
  }

  .grid-item:last-child {
    border-right: none;
  }
}

.tab-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Tab buttons */
.tabs {
  display: flex;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 30px;
}

.tab {
  flex: 1;
  padding: 14px 10px;
  background: #f4f4f4;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid #ccc;
}

.tab:hover {
  background: #e8e8e8;
}

.tab.active {
  background: #001b64;
  color: #fff;
}

/* Image content */
.tab-content {
  text-align: center;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
  display: block;
}

.tab-pane img {
  width: 100%;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .tab {
    font-size: 0.9rem;
    padding: 10px;
  }

  .tab-pane img {
    border-radius: 4px;
  }
}

/* Major Projects Section */
.major-projects {
  padding: 80px 0;
  background-color: var(--bg-white);
  text-align: center;
  font-family: var(--font);
  overflow: hidden;
}

.major-projects .section-title {
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 50px;
  text-transform: uppercase;
  display: inline-block;
}

/* Grid Layout (Desktop 5 Cards) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

/* Project Card */
.project-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  /* ensures equal height */
  flex-direction: column;
  /* stack elements cleanly */
  height: 100%;
  /* equal height cards */
  transition: 0.3s;
  position: relative;
}

/* FIX: Image Black Tint Issue */
.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;

  /* Remove unwanted dark filters */
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* Hover effect */
.project-card:hover img {
  transform: scale(1.05);
}

/* Text Styling */
.project-card h3,
.project-card p,
.project-card hr {
  margin: 0 18px;
}

.project-card h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-top: 15px;
}

.project-card hr {
  width: 80%;
  margin: 8px auto;
  border: 0;
  border-top: 1px solid var(--border);
}

/* FIX: Keep text bottom aligned (equal height cards always) */
.project-card p {
  margin-top: auto;
  padding-bottom: 20px;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Hover Lift */
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- MOBILE-ONLY FIXES ---------- */
@media (max-width: 600px) {
  .major-projects {
    padding: 60px 16px;
    /* tighter mobile padding */
  }

  .major-projects .projects-grid {
    grid-template-columns: 1fr;
    /* one per row */
    gap: 16px;
    align-items: stretch;
  }

  /* Make all cards the same height on mobile */
  .major-projects .project-card {
    display: flex;
    flex-direction: column;
    height: 420px;
    /* uniform card height */
    overflow: hidden;
  }

  /* Consistent image size */
  .major-projects .project-card img {
    height: 230px;
    /* fixed image height */
    width: 100%;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 12px 12px 0 0;
  }

  /* Keep title to two lines for consistent text height */
  .major-projects .project-card h3 {
    font-size: 1.15rem;
    margin: 12px 0 6px;
    padding: 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* clamp to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    /* reserve space so heights match */
  }

  .major-projects .project-card hr {
    width: 88%;
    margin: 0 auto;
  }

  /* Clamp description too so card heights stay equal */
  .major-projects .project-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 8px 12px 16px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* clamp to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    /* consistent space */
  }
}

/* CSS */
.floating-icons {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn img {
  width: 26px;
  /* keeps the icon nicely centered */
  height: 26px;
  display: block;
}

/* WhatsApp: green circle + white icon */
.btn.wa {
  background: #25d366;
}

/* Phone: any brand color you like; icon forced to white */
.btn.call {
  background: var(--primary);
}

.btn.call img {
  filter: brightness(0) invert(1);
}

/* Hover */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

/* Mobile spacing tweak */
@media (max-width: 480px) {
  .floating-icons {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .btn {
    width: 54px;
    height: 54px;
  }

  .btn img {
    width: 24px;
    height: 24px;
  }
}

.guide-overview {
  padding: 80px 0 100px;
  text-align: center;
}

.guide-overview h2 {
  font-size: 28px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 60px;
}

.guide-container {
  max-width: 1200px;
  margin: 0 auto;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  text-align: left;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
}

.card h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  color: #f5a300;
  line-height: 1.4;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  color: #1a2cbf;
  text-decoration: underline;
  cursor: pointer;
}

.arrows {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #1a2cbf;
  background: #fff;
  color: #1a2cbf;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  width: 760px;
  height: 460px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-header {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h3 {
  font-size: 20px;
  color: #0a0f5c;
}

.popup-close {
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

.popup-body {
  padding: 0 22px 22px;
  overflow-y: auto;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
}

.popup-body::-webkit-scrollbar {
  width: 6px;
}
.popup-body::-webkit-scrollbar-thumb {
  background: #1a2cbf;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .guide-cards {
    grid-template-columns: 1fr;
  }
  .popup-box {
    width: 90%;
    height: 80vh;
  }
}

.offgrid-page {
  max-width: 1100px;
  margin: auto;
  padding: 140px 20px 80px;
  color: #333;
  line-height: 1.9;
}

.offgrid-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.offgrid-page p.subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.offgrid-page h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 45px 0 15px;
  color: var(--primary);
}

.offgrid-page h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 10px;
  color: #f5a300;
}

.offgrid-page p {
  font-size: 16px;
  margin-bottom: 14px;
  color: #444;
}

.offgrid-page ul,
.offgrid-page ol {
  padding-left: 22px;
  margin-bottom: 22px;
}

.offgrid-page li {
  font-size: 16px;
  margin-bottom: 8px;
}

.offgrid-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
}

.offgrid-page th,
.offgrid-page td {
  border: 1px solid #ddd;
  padding: 12px;
}

.offgrid-page th {
  background: #f3f4f6;
  font-weight: 600;
}

.offgrid-page em {
  font-size: 14px;
  color: #777;
}

@media (max-width: 768px) {
  .offgrid-page {
    padding: 120px 16px 60px;
  }

  .offgrid-page h1 {
    font-size: 30px;
  }

  .offgrid-page h2 {
    font-size: 22px;
  }
}

.ongrid-page {
  max-width: 1100px;
  margin: auto;
  padding: 140px 20px 80px;
  color: #333;
  line-height: 1.9;
}

.ongrid-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.ongrid-page p.subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.ongrid-page h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 45px 0 15px;
  color: var(--primary);
}

.ongrid-page h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 10px;
  color: #f5a300;
}

.ongrid-page p {
  font-size: 16px;
  margin-bottom: 14px;
  color: #444;
}

.ongrid-page ul,
.ongrid-page ol {
  padding-left: 22px;
  margin-bottom: 22px;
}

.ongrid-page li {
  font-size: 16px;
  margin-bottom: 8px;
}

.ongrid-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
}

.ongrid-page th,
.ongrid-page td {
  border: 1px solid #ddd;
  padding: 12px;
}

.ongrid-page th {
  background: #f3f4f6;
  font-weight: 600;
}

.ongrid-page em {
  font-size: 14px;
  color: #777;
}

@media (max-width: 768px) {
  .ongrid-page {
    padding: 120px 16px 60px;
  }

  .ongrid-page h1 {
    font-size: 30px;
  }

  .ongrid-page h2 {
    font-size: 22px;
  }
}
