/* ------------------------------------------------------------------
   Dev Solar custom styles (loaded after main.css).
   Keep site-specific tweaks here so the vendor main.css stays clean.
------------------------------------------------------------------ */

/* Project / spec detail table -------------------------------------- */
.project-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: 16px;
}
.project-spec-table th,
.project-spec-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e6e8ec;
}
.project-spec-table thead th {
  background: #007200;
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
}
.project-spec-table tbody tr:nth-child(even),
.project-spec-table tbody tr:nth-child(even) {
  background: #f6f8f6;
}
.project-spec-table td:first-child,
.project-spec-table th:first-child {
  width: 38%;
}
.project-spec-table tbody td:first-child {
  font-weight: 600;
  color: #001233;
}
.project-spec-table thead th:first-child {
  color: #fff;
}
.project-spec-table td.nowrap { white-space: nowrap; }
.project-spec-table tbody tr.spec-group-row td {
  width: auto;
  background: #fff7c2;
  color: #005a00;
  font-weight: 700;
  text-align: center;
  padding: 10px 18px;
  border-top: 2px solid #f2d600;
}
/* mobile: About page table (spec_table block, .is-stacked) becomes small cards (label : value) */
@media (max-width: 767px) {
  .project-spec-table.is-stacked, .project-spec-table.is-stacked tbody, .project-spec-table.is-stacked tr, .project-spec-table.is-stacked td { display: block; width: 100% !important; }
  .project-spec-table.is-stacked thead { display: none; }
  .project-spec-table.is-stacked { font-size: 15px; }
  .project-spec-table.is-stacked tbody tr { border: 1px solid #e6e8ec; border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff !important; }
  .project-spec-table.is-stacked td { border: 0; border-top: 1px solid #f0f2f0; padding: 8px 14px; display: flex; gap: 12px; white-space: normal; }
  .project-spec-table.is-stacked td::before { content: attr(data-label); flex: 0 0 38%; font-weight: 600; color: #007200; font-size: 13px; }
  .project-spec-table.is-stacked tbody td:first-child { border-top: 0; background: #f2f8f2; font-size: 16px; }
  .project-spec-table.is-stacked tbody td:first-child::before { display: none; }
  .project-spec-table.is-stacked td.nowrap { white-space: normal; }
  .project-spec-table.is-stacked tbody tr.spec-group-row { border: 0; border-radius: 8px; margin: 18px 0 10px; }
  .project-spec-table.is-stacked tbody tr.spec-group-row td { display: block; border-top: 0; border-left: 4px solid #f2d600; text-align: left; background: #fff7c2; }
  .project-spec-table.is-stacked tbody tr.spec-group-row td::before { display: none; }
  .project-spec-table.is-stacked td[data-label=""]::before { display: none; }
}
.project-spec-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: #001233;
  padding-bottom: 10px;
  font-size: 18px;
}

/* "Recent Dev Solar Installations" project cards -----------------
   This static grid reuses the template's .gallery-images-area markup,
   but the vendor styles for it are all scoped to slider wrappers
   (.gallery-slider-area / .project4 / .project-inner-section), so
   nothing applied here. Styles below give the section a finished,
   always-visible card look. */
.service-inner-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.service-inner-section .gallery-images-area {
  position: relative;
  margin-bottom: 30px;
}
.service-inner-section .gallery-images-area .img1 {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.service-inner-section .gallery-images-area .img1 img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}
.service-inner-section .gallery-images-area:hover .img1 img {
  transform: scale(1.06);
}
.service-inner-section .gallery-images-area .content-area {
  position: relative;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  margin: -32px 18px 0;
  padding: 30px 22px 22px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 18, 51, 0.06);
}
.service-inner-section .gallery-images-area .content-area .icons a {
  position: absolute;
  top: -21px;
  left: 50%;
  margin-left: -21px;
  height: 42px;
  width: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 50%;
  background: #007200;
  color: #fff;
  transform: rotate(-45deg);
  transition: background 0.3s ease;
}
.service-inner-section .gallery-images-area:hover .content-area .icons a {
  background: #001233;
}
.service-inner-section .gallery-images-area .content-area h5 {
  margin: 0;
  color: #007200;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.service-inner-section .gallery-images-area .content-area a.title {
  display: inline-block;
  color: #001233;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.3s ease;
}
.service-inner-section .gallery-images-area .content-area a.title:hover {
  color: #007200;
}

/* Homepage: give the Products section a white bg so it reads
   distinct from the (light-grey) Projects section above it. */
.service5.products-white {
  background: #fff;
}
.service5.products-white .service5-boxarea {
  background: #f6f8fa;
  border: 1px solid #e6e8ec;
  box-shadow: 0 10px 26px rgba(0, 18, 51, 0.05);
}

/* Breadcrumb hero sits on a dark image overlay: force white text -- */
.inner-header-section .hero-heading-area h2,
.inner-header-section .hero-heading-area .btn-area1 a,
.inner-header-section .hero-heading-area .btn-area1 a span,
.inner-header-section .hero-heading-area .btn-area1 a i {
  color: #fff;
}
.inner-header-section .hero-heading-area .btn-area1 a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Header: nav + Solar Calculator ghost button + Get Quote -------- */
#solarCalc {
  scroll-margin-top: 120px;
}
.homepage5-body .vl-main-menu ul > li > a {
  padding: 0 11px;
  font-size: 16px;
}
.vl-hero-btn.d-lg-flex {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.vl-btn-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* vertical padding = .vl-btn6 padding (18px) minus its 1.5px border, so both
     buttons end up the same height; font metrics match .vl-btn6 too */
  padding: 16.5px 22px;
  border: 1.5px solid #007200;
  border-radius: 8px;
  color: #007200;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.vl-btn-calc i {
  color: #007200;
  transition: color 0.3s ease;
}
.vl-btn-calc:hover {
  background: #007200;
  color: #fff;
  transform: translateY(-3px);
}
.vl-btn-calc:hover i {
  color: #fff;
}
/* current-page underline in the top menu */
.homepage5-body .vl-main-menu ul > li > a.is-current {
  color: #007200;
}
.homepage5-body .vl-main-menu ul > li > a.is-current::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #007200;
}
@media (min-width: 1200px) and (max-width: 1399px) {
  /* .vl-btn6 drops to 15px padding in this range - match it */
  .vl-btn-calc { padding: 13.5px 16px; }
  .homepage5-body .vl-main-menu ul > li > a { padding: 0 9px; font-size: 15px; }
}
/* Solar Calculator link inside the mobile off-canvas menu */
.vl-offcanvas-calc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.vl-offcanvas-calc i { color: #fff; }
.vl-offcanvas-calc:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ===== Homepage solar savings calculator ====================== */
.solar-calc {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  border-radius: 18px;
  border: 1px solid #e6e8ec;
  background: #fff;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 18, 51, 0.06);
}
.solar-calc__inputs { display: flex; flex-direction: column; gap: 22px; }
.sc-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #001233;
  margin-bottom: 10px;
}
.sc-field label span { color: #9aa4ab; font-weight: 500; }
.sc-select { position: relative; }
.sc-select::after {
  content: "\25BE";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4ab;
  pointer-events: none;
}
.sc-select select {
  width: 100%;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #001233;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 13px 40px 13px 14px;
  cursor: pointer;
}
.sc-billrow {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
}
.sc-billrow input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
  color: #001233;
  font-family: inherit;
}
.sc-rupee,
.sc-unit { color: #676b74; font-weight: 600; }
.sc-rupee { margin-right: 8px; }
.sc-unit { margin-left: 8px; }
.sc-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  margin-top: 14px;
  background: #e2e8e2;
  cursor: pointer;
}
.sc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007200;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.sc-field input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #007200;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.sc-hint { font-size: 12px; color: #9aa4ab; margin-top: 8px; }
.sc-note { font-size: 12px; line-height: 1.6; color: #676b74; margin: 0; }

.solar-calc__results {
  background: #f6f8fa;
  border-radius: 14px;
  padding: 24px;
}
.sc-headline {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6e8ec;
  margin-bottom: 18px;
}
.sc-headline__label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #676b74;
}
.sc-headline__value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #007200;
  line-height: 1.2;
  margin: 4px 0;
}
.sc-headline__sub { display: block; font-size: 13px; color: #9aa4ab; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-tile {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-tile .k { font-size: 12px; color: #676b74; }
.sc-tile .v { font-size: 18px; font-weight: 700; color: #001233; }
.sc-tile.is-green .v { color: #007200; }
.sc-tile.is-strong { background: #007200; border-color: #007200; }
.sc-tile.is-strong .k { color: rgba(255, 255, 255, 0.8); }
.sc-tile.is-strong .v { color: #fff; }

@media (max-width: 991px) {
  .solar-calc { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 479px) {
  .sc-grid { grid-template-columns: 1fr; }
}

/* CTA band above the footer ------------------------------------- */
.cta-footer-bg {
  background: #0a1e77;
}

/* Footer nav links: white pill + footer-blue text on hover ------ */
.vl-footer5-section-area .vl-footer-widget.first-padding ul li a {
  padding: 7px 12px;
  margin: 16px 0 0 -12px;
  border-radius: 6px;
}
.vl-footer5-section-area .vl-footer-widget.first-padding ul li:first-child a {
  margin-top: 4px;
}
.vl-footer5-section-area .vl-footer-widget.first-padding ul li a:hover {
  background: #fff;
  color: #0a1e77;
  opacity: 1;
  padding-left: 12px;
}

/* Footer contact lines sit closer together (theme default 24px gap) */
.vl-footer5-section-area .vl-footer-widget.contact ul li {
  padding-top: 6px;
}
/* Footer contact links: same white pill + footer-blue text on hover -- */
.vl-footer5-section-area .vl-footer-widget.contact ul li a {
  padding: 8px 12px;
  margin: 0 0 0 -12px;
  border-radius: 6px;
  transition: all 0.4s;
}
.vl-footer5-section-area .vl-footer-widget.contact ul li:nth-child(1) a {
  margin: 0 0 0 -12px;
}
.vl-footer5-section-area .vl-footer-widget.contact ul li a:hover {
  background: #fff;
  color: #0a1e77;
  opacity: 1;
  padding-left: 16px;
}
.vl-footer5-section-area .vl-footer-widget.contact ul li a:hover svg {
  filter: none;
}

/* Government scheme callout -------------------------------------- */
.scheme-callout {
  background: #f6f8f6;
  border: 1px solid #d8e6d8;
  border-left: 4px solid #007200;
  border-radius: 8px;
  padding: 22px 24px;
}
.scheme-callout h4 { margin: 0 0 10px; color: #001233; }
.scheme-callout ul { margin: 0; padding: 0; list-style: none; }
.scheme-callout ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.scheme-callout ul li:last-child { margin-bottom: 0; }
.scheme-callout ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #007200;
  font-weight: 700;
}
.scheme-callout .note { font-size: 14px; color: #676b74; margin-top: 12px; }

/* Blog details page ------------------------------------------------
   Reuses .service-details-section (content + right sidebar). The
   widgets below are page-specific and not covered by main.css. */
.blog-post-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-post-meta li {
  display: inline-block;
  margin-right: 20px;
  color: #676b74;
  font-size: 15px;
}
.blog-post-meta li i {
  color: #007200;
  margin-right: 6px;
}
.blog-quote {
  margin: 0;
  padding: 20px 24px;
  background: #f6f8f6;
  border-left: 4px solid #007200;
  border-radius: 8px;
  color: #001233;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
}
.blog-tags span {
  font-weight: 700;
  color: #001233;
  margin-right: 10px;
}
.blog-tags a {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f6f8f6;
  color: #676b74;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.blog-tags a:hover {
  background: #007200;
  color: #fff;
}

/* Sidebar: Recent Posts widget */
.recent-posts-widget {
  border-radius: 8px;
  background: #f6f8fa;
  padding: 24px 20px;
}
.recent-posts-widget .recent-post {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #e6e8ec;
}
.recent-posts-widget .recent-post:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.recent-posts-widget .recent-post .thumb {
  flex: 0 0 72px;
}
.recent-posts-widget .recent-post .thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.recent-posts-widget .recent-post .date {
  display: block;
  font-size: 13px;
  color: #676b74;
  margin-bottom: 4px;
}
.recent-posts-widget .recent-post .date i {
  color: #007200;
  margin-right: 5px;
}
.recent-posts-widget .recent-post .rp-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #001233;
  transition: color 0.3s ease;
}
.recent-posts-widget .recent-post:hover .rp-title {
  color: #007200;
}

/* About page: company journey / milestone timeline --------------- */
.company-journey {
  padding: 90px 0;
}
.cj-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.cj-timeline::before {
  content: "";
  position: absolute;
  left: 41px;
  right: 20px;
  top: 31px;
  height: 2px;
  background: #e2e8e2;
}
.cj-step {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cj-dot {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #007200;
  color: #007200;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cj-step.is-current .cj-dot {
  background: #007200;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 114, 0, 0.12);
}
.cj-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  margin-top: 22px;
  background: #f6f8fa;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 20px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cj-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #d9edd9;
  color: #007200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.cj-step.is-current .cj-ic {
  background: #007200;
  color: #fff;
}
.cj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 18, 51, 0.08);
}
.cj-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #001233;
}
.cj-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #676b74;
}
/* halo ring on each node; nudge it in to sit above the card icon */
.cj-dot {
  margin-left: 10px;
  box-shadow: 0 0 0 7px #e4f1e4;
}
.cj-step.is-current .cj-dot {
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(0, 114, 0, 0.18);
}
.cj-step.is-current .cj-dot::after {
  background: #007200;
}
/* short stub connecting node down to its card */
.cj-dot::after {
  content: "";
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 2px;
  height: 16px;
  background: #d6e6d6;
  transform: translateX(-50%);
}
/* small dots sitting on the rail between nodes */
.cj-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  right: -15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdd9cd;
}
.cj-card {
  border-bottom: 3px solid #e2e8e2;
}
.cj-card:hover {
  border-bottom-color: #007200;
}
@media (max-width: 1199px) {
  .cj-timeline {
    display: block;
    padding-left: 8px;
  }
  .cj-dot::after,
  .cj-step:not(:last-child)::after {
    display: none;
  }
  .cj-timeline::before {
    left: 31px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .cj-step {
    padding-left: 84px;
    padding-bottom: 30px;
  }
  .cj-step:last-child {
    padding-bottom: 0;
  }
  .cj-dot {
    position: absolute;
    left: 0;
    top: 0;
    margin-left: 0;
  }
  .cj-card {
    margin-top: 0;
  }
}

/* Contact page: equal-height, vertically-centred info cards ------ */
@media (min-width: 992px) {
  .contact1 .row:first-child { align-items: stretch; }
  .contact1 .row:first-child > [class*="col-lg-4"] {
    display: flex;
    flex-direction: column;
  }
  .contact1 .widget-contactbox {
    flex: 1 1 auto;
    align-items: center;
  }
}

/* ===== Get Quote modal ========================================= */
body.quote-modal-open { overflow: hidden; }

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.quote-modal.is-open { display: flex; }
.quote-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 51, 0.55);
}
.quote-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 18, 51, 0.35);
  animation: qmPop 0.28s ease;
}
@keyframes qmPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.quote-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #001233;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 18, 51, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.quote-modal__close:hover { background: #007200; color: #fff; transform: rotate(90deg); }
.quote-modal__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}
.quote-modal__main { padding: 38px 36px; }
.quote-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #007200;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.quote-modal__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: #007200;
}
.quote-modal__title {
  margin: 14px 0 10px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #001233;
}
.quote-modal__lead {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #676b74;
}
.quote-modal__form { display: flex; flex-direction: column; gap: 14px; }
.qm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qm-field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qm-field > i:first-child {
  width: 44px;
  text-align: center;
  color: #9aa4ab;
  font-size: 14px;
  flex-shrink: 0;
}
.qm-field input,
.qm-field select,
.qm-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 14px 14px 0;
  font-size: 14px;
  color: #001233;
  font-family: inherit;
}
/* the native <select> fills the whole field so a click anywhere opens it */
.qm-field--select {
  position: relative;
  min-height: 50px;
}
.qm-field--select > i:first-child {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.qm-field--select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 38px 0 44px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #676b74;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.qm-field--select .qm-caret {
  position: absolute;
  right: 16px;
  z-index: 1;
  color: #9aa4ab;
  font-size: 12px;
  pointer-events: none;
}
.qm-field--area { align-items: flex-start; }
.qm-field--area > i:first-child { padding-top: 14px; }
.qm-field textarea { min-height: 96px; resize: vertical; padding-right: 60px; }
.qm-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  color: #9aa4ab;
}
.qm-field:focus-within {
  border-color: #007200;
  box-shadow: 0 0 0 3px rgba(0, 114, 0, 0.12);
}
.qm-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #007200;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}
.qm-submit:hover { background: #005a00; }
.qm-submit:disabled { background: #4c9a4c; cursor: default; }
.qm-privacy {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9aa4ab;
  display: flex;
  align-items: center;
  gap: 6px;
}
.quote-modal__aside {
  position: relative;
  padding: 40px 30px 30px;
  background: linear-gradient(180deg, #eaf5ea 0%, #dff0df 100%);
  display: flex;
  flex-direction: column;
}
.qm-aside-script {
  margin: 0 0 26px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  font-style: italic;
  color: #0f5c2e;
}
.qm-aside-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.qm-aside-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #063a1c;
}
.qm-ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #007200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 90, 0, 0.15);
}
.qm-aside-img {
  position: relative;
  margin-top: auto;
  border-radius: 12px;
  overflow: hidden;
}
.qm-aside-img img { display: block; width: 100%; height: 150px; object-fit: cover; }
.qm-aside-caption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #fff;
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  .quote-modal { padding: 0; }
  .quote-modal__dialog { border-radius: 0; max-height: 100vh; height: 100%; }
  .quote-modal__grid { grid-template-columns: 1fr; }
  .quote-modal__aside { order: -1; padding: 46px 24px 24px; }
  .qm-aside-img { display: none; }
  .quote-modal__main { padding: 26px 22px 32px; }
  .qm-row { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .project-spec-table th,
  .project-spec-table td { padding: 11px 12px; font-size: 14px; }
  .project-spec-table td:first-child,
  .project-spec-table th:first-child { width: 44%; }
  .company-journey { padding: 60px 0; }
}

/* Lighten the dark overlay on the left of the hero */
.hero5-section::after {
  background: linear-gradient(90deg, rgba(0, 18, 51, 0.5) 0%, rgba(0, 18, 51, 0) 55%);
}
/* Mobile/tablet: the text spans the full width over the bright sky, where
   white text washes out - put it on a light card in the brand blue instead.
   The photo/portrait below is untouched. */
@media (max-width: 991px) {
  .hero5-section::after { background: none; }
  .hero5-section .hero-header {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 22px 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 18, 51, 0.18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  .hero5-section .hero-header h1 { color: #0a1e77; }
  .hero5-section .hero-header p { color: #33415c; }
  .hero5-section .hero-header h5 {
    color: #0a1e77;
    background: rgba(10, 30, 119, 0.08);
    border-color: rgba(10, 30, 119, 0.15);
  }
  .hero5-section .hero-header h5 img { filter: brightness(0) saturate(100%) invert(12%) sepia(56%) saturate(4000%) hue-rotate(226deg); }
  /* "Learn More" is a white button - give it an outline so it shows on the white card */
  .hero5-section .hero-header .play-btns-area .btn-area1 .vl-btn6.btn2 { border: 1.5px solid #0a1e77; color: #0a1e77; margin: 0; }
  .hero5-section .hero-header .play-btns-area .btn-area1 { display: flex; flex-wrap: wrap; gap: 12px; }
}

/* About page — company profile blocks ------------------------------- */
.ds-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 40px;
  border-radius: 16px;
  background: linear-gradient(120deg, #001233 0%, #06306b 100%);
}
.ds-stats .item { text-align: center; }
.ds-stats .num {
  display: block;
  font-family: var(--ztc-family-font1);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.ds-stats .lbl {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.ds-heritage-img img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
@media (max-width: 991px) { .ds-heritage-img { margin-top: 32px; } }

.ds-dealer-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-dealer-list span {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid #d7dbe0;
  border-radius: 999px;
  background: #f6f8f6;
  font-size: 14px;
  font-weight: 500;
  color: #001233;
}

/* Alternating section backgrounds (index-style rhythm) */
.ds-bg-alt { background: var(--ztc-bg-bg-4); }
.ds-stats-wrap { padding: 70px 0; }

/* On a grey section, cards/chips flip to white for contrast */
.ds-bg-alt .choose5-boxarea { background: #fff; }
.ds-bg-alt .choose5-boxarea:hover { background: var(--ztc-bg-bg-11); }
.ds-bg-alt .ds-dealer-list span { background: #fff; }

/* Motto — light green band with a white quote card */
.ds-motto {
  padding: 90px 0;
  background: linear-gradient(180deg, #E9FBEF 0%, #ffffff 100%);
}
.ds-motto-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d5efdd;
  border-radius: 20px;
  padding: 58px 48px 46px;
  text-align: center;
  box-shadow: 0 22px 55px rgba(0, 114, 0, 0.10);
}
.ds-quote-mark {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #007200;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 114, 0, 0.30);
}
.ds-motto blockquote {
  margin: 0;
  color: #001233;
  font-size: 23px;
  line-height: 1.6;
  font-style: italic;
}
.ds-motto .who {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
  color: #007200;
}

@media (max-width: 991px) { .ds-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) {
  .ds-stats { grid-template-columns: 1fr; padding: 30px 24px; }
  .ds-motto { padding: 64px 0; }
  .ds-motto-inner { padding: 46px 24px 36px; }
  .ds-motto blockquote { font-size: 19px; }
}

/* Government subsidy banner ------------------------------------------ */
.ds-subsidy-banner { padding: 50px 0; }
.ds-subsidy-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(120deg, #F2FBF5 0%, #E9FBEF 100%);
  border: 1px solid #d5efdd;
  border-radius: 20px;
  padding: 36px 40px;
}
.ds-subsidy-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #007200;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.ds-subsidy-text { flex: 1; }
.ds-subsidy-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #007200;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}
.ds-subsidy-text h3 {
  color: #001233;
  font-family: var(--ztc-family-font1);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}
.ds-subsidy-text p { margin: 0 0 14px; color: #4a5568; }
.ds-subsidy-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-subsidy-badges span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5efdd;
  color: #001233;
  font-size: 13px;
  font-weight: 600;
}
.ds-subsidy-cta { flex-shrink: 0; }
@media (max-width: 991px) {
  .ds-subsidy-card { flex-direction: column; align-items: flex-start; text-align: left; padding: 30px; }
  .ds-subsidy-cta { width: 100%; }
  .ds-subsidy-cta .vl-btn6 { display: block; text-align: center; }
}

/* Rich-text body (blog posts, Contact page, any "rich_text" block).
   The theme resets all h1-h6/p margins to 0 sitewide and instead uses
   manually-placed <div class="spaceNN"> elements between components - fine
   for hand-built template pages, but admin-authored HTML in a plain
   textarea can't realistically do that. This restores real prose
   typography (spacing, hierarchy, list/quote styling) scoped to this
   wrapper only, so it never touches the rest of the site. */
.ds-rich-text {
  color: var(--ztc-text-text-3, #676B74);
  font-size: 16px;
  line-height: 1.85;
}
.ds-rich-text > *:first-child { margin-top: 0; }
.ds-rich-text > *:last-child { margin-bottom: 0; }
.ds-rich-text p { margin: 0 0 20px; }
.ds-rich-text h1, .ds-rich-text h2, .ds-rich-text h3,
.ds-rich-text h4, .ds-rich-text h5, .ds-rich-text h6 {
  color: var(--ztc-text-text-2, #001233);
  font-weight: 700;
  line-height: 1.3;
  margin: 34px 0 16px;
}
.ds-rich-text h1 { font-size: 30px; }
.ds-rich-text h2 { font-size: 26px; }
.ds-rich-text h3 { font-size: 21px; }
.ds-rich-text h4 { font-size: 18px; }
.ds-rich-text h5, .ds-rich-text h6 { font-size: 16px; }
.ds-rich-text strong, .ds-rich-text b { color: var(--ztc-text-text-2, #001233); font-weight: 700; }
.ds-rich-text a { color: var(--ztc-text-text-9, #007200); text-decoration: underline; }
.ds-rich-text ul, .ds-rich-text ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.ds-rich-text ol { counter-reset: ds-rt-ol; }
.ds-rich-text ul li, .ds-rich-text ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.ds-rich-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: url('../img/icons/check-h1.svg') no-repeat center / contain;
}
.ds-rich-text ol li { counter-increment: ds-rt-ol; }
.ds-rich-text ol li::before {
  content: counter(ds-rt-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--ztc-text-text-9, #007200);
}
.ds-rich-text blockquote {
  margin: 28px 0;
  padding: 18px 26px;
  background: var(--ztc-bg-bg-4, #F6F8FA);
  border-left: 3px solid var(--ztc-text-text-9, #007200);
  color: var(--ztc-text-text-2, #001233);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
}
.ds-rich-text .table-responsive { margin: 0 0 20px; }
.ds-rich-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0 20px; }

/* Sidebar "Talk to Dev Solar" card - eyebrow + two-tone heading + subtext,
   Call + WhatsApp actions with round icon badges and a trust-badge row.
   Used on Product/Service/Blog detail pages (partials/_help_area). */
.ds-help-area {
  background: linear-gradient(165deg, #eef6f0 0%, var(--ztc-bg-bg-4, #F6F8FA) 55%, #fff 100%) !important;
  box-shadow: 0 10px 28px rgba(0,18,51,.05);
}
.ds-help-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ztc-text-text-9, #007200);
  margin-bottom: 8px;
}
.ds-help-title.ds-help-title {
  font-size: 22px;
  line-height: 1.28 !important;
  color: var(--ztc-text-text-2, #001233);
  font-weight: 700;
}
.ds-help-accent { color: var(--ztc-text-text-9, #007200); }
.ds-help-sub { margin: 10px 0 22px; color: var(--ztc-text-text-3, #676B74); font-size: 13.5px; line-height: 1.6; }

.ds-contact-actions { display: flex; flex-direction: column; gap: 12px; }
.ds-contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ds-contact-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ds-contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.ds-contact-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ds-contact-text strong { font-size: 15px; color: #fff; }
.ds-contact-text small { font-size: 12.5px; color: rgba(255,255,255,.85); }
.ds-contact-arrow { flex-shrink: 0; color: rgba(255,255,255,.85); font-size: 13px; }

.ds-contact-btn--call {
  background: linear-gradient(135deg, var(--ztc-text-text-9, #007200) 0%, var(--ztc-bg-bg-2, #001233) 130%);
  box-shadow: 0 8px 18px rgba(0,18,51,.18);
}
.ds-contact-btn--call .ds-contact-icon { background: rgba(255,255,255,.16); }
.ds-contact-btn--call:hover { box-shadow: 0 12px 24px rgba(0,18,51,.26); }

.ds-contact-btn--whatsapp {
  background: linear-gradient(135deg, #2FE076 0%, #1EAE57 100%);
  box-shadow: 0 8px 18px rgba(30,174,87,.22);
}
.ds-contact-btn--whatsapp .ds-contact-icon { background: rgba(255,255,255,.2); }
.ds-contact-btn--whatsapp:hover { box-shadow: 0 12px 24px rgba(30,174,87,.3); }

.ds-help-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,18,51,.08);
}
.ds-help-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
  font-size: 11px;
  color: var(--ztc-text-text-3, #676B74);
  font-weight: 600;
}
.ds-help-trust-item + .ds-help-trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(0,18,51,.1);
}
.ds-help-trust-item i { color: var(--ztc-text-text-9, #007200); font-size: 16px; }

/* Centered search bar on the Blog listing page (blog/index.php) */
.ds-blog-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ztc-border-border-1, #EAEAEA);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 8px 24px rgba(0,18,51,.06);
}
.ds-blog-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ztc-text-text-2, #001233);
  padding: 10px 0;
}
.ds-blog-search input::placeholder { color: var(--ztc-text-text-3, #676B74); }
.ds-blog-search button {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--ztc-text-text-9, #007200);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.ds-blog-search button:hover { background: var(--ztc-bg-bg-3, #007F5F); }

/* Toast shown after a form submission (Contact, Get Quote, enquiries, newsletter) */
.ds-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  max-width: min(92vw, 480px);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,18,51,.18);
  animation: dsToastIn .3s ease;
}
.ds-toast-success { background: var(--ztc-text-text-9, #007200); color: #fff; }
.ds-toast-error { background: #c0392b; color: #fff; }
@keyframes dsToastIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.ds-preview-banner {
  background: #fff3cd;
  color: #7a5b00;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f0d98a;
}

/* AI chat widget (app/Views/layouts/_head.php + assets/js/chatbot-widget.js) */
.ds-chat-fab {
  position: fixed; right: 30px; bottom: 100px; height: 56px; width: 56px; z-index: 10000;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: linear-gradient(135deg, #0f7a3e, #0b5c2f); color: #fff; font-size: 24px;
  border: none; cursor: pointer; box-shadow: 0 6px 18px rgba(15,122,62,.4);
}
.ds-chat-fab:hover { filter: brightness(1.08); }
.ds-chat-panel {
  position: fixed; right: 24px; bottom: 168px; width: 350px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 200px); background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); z-index: 10000; display: flex; flex-direction: column; overflow: hidden;
}
.ds-chat-head {
  background: linear-gradient(135deg, #0f7a3e, #0b5c2f); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14.5px;
}
.ds-chat-head span { display: flex; align-items: center; gap: 8px; }
.ds-chat-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.ds-chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #f7f9f8; }
.ds-chat-lead-form { display: flex; flex-direction: column; gap: 10px; }
.ds-chat-lead-form p { margin: 0 0 4px; font-size: 13px; color: #555; }
.ds-chat-lead-form input {
  padding: 10px 12px; border: 1px solid #dde3e0; border-radius: 8px; font-size: 13.5px; font-family: inherit;
}
.ds-chat-lead-form button {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: none;
  border-radius: 8px; background: #0f7a3e; color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.ds-chat-lead-error { color: #c0392b; font-size: 12.5px; }
.ds-chat-messages { display: flex; flex-direction: column; gap: 10px; }
.ds-chat-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.ds-chat-msg--assistant { align-self: flex-start; background: #fff; border: 1px solid #e4e8e6; color: #222; border-bottom-left-radius: 4px; }
.ds-chat-msg--user { align-self: flex-end; background: #0f7a3e; color: #fff; border-bottom-right-radius: 4px; }
.ds-chat-msg--typing { align-self: flex-start; color: #888; font-style: italic; }
.ds-chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; background: #fff; }
.ds-chat-input-row input {
  flex: 1; padding: 10px 12px; border: 1px solid #dde3e0; border-radius: 999px; font-size: 13.5px; font-family: inherit;
}
.ds-chat-input-row button {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: #0f7a3e; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
}
@media (max-width: 575px) {
  .ds-chat-fab { right: 16px; bottom: 82px; height: 48px; width: 48px; font-size: 20px; }
  .ds-chat-panel { right: 12px; bottom: 138px; width: calc(100vw - 24px); }
}

/* Google rating badge (app/Views/partials/_google_rating_badge.php) */
.ds-google-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e5ea;
  border-radius: 999px; padding: 7px 14px; font-size: 13px; color: #1b2432; text-decoration: none;
}
.ds-google-badge:hover { border-color: #4285F4; text-decoration: none; color: #1b2432; }
.ds-google-badge-brand { font-weight: 700; color: #4285F4; font-size: 12.5px; }
.ds-google-badge-stars { color: #fbbc04; font-size: 12px; letter-spacing: 1px; }
.ds-google-badge-text { font-weight: 700; }

/* Video & Gallery block (app/Views/blocks/video_gallery.php) + Product gallery (products/show.php) */
.ds-video-thumb { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.ds-video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ds-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center; color: #0f7a3e; font-size: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease;
}
.ds-video-thumb:hover .ds-video-play { transform: translate(-50%, -50%) scale(1.08); }

.ds-gallery-row { row-gap: 20px; }
.ds-gallery-popup-item { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.ds-gallery-popup-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s ease; }
.ds-gallery-zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,18,51,0); color: #fff; font-size: 20px; opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.ds-gallery-popup-item:hover .ds-gallery-zoom { opacity: 1; background: rgba(0,18,51,.45); }
.ds-gallery-popup-item:hover img { transform: scale(1.06); }

/* Admin bar (app/Views/partials/_admin_bar.php) - only rendered for a logged-in admin viewing the public site */
.ds-admin-bar { background: #0d2748; color: #c3d3e8; font-size: 13px; position: relative; z-index: 20000; }
.ds-admin-bar-inner { max-width: 1320px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 14px; }
.ds-admin-bar-brand { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.ds-admin-bar-brand:hover { color: #fff; text-decoration: underline; }
.ds-admin-bar-sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }
.ds-admin-bar-msg { color: #8fa5c2; }
.ds-admin-bar-spacer { flex: 1; }
.ds-admin-bar-edit {
  display: inline-flex; align-items: center; gap: 6px; background: #0f7a3e; color: #fff; padding: 5px 12px;
  border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 12.5px;
}
.ds-admin-bar-edit:hover { background: #0b5c2f; color: #fff; text-decoration: none; }
.ds-admin-bar-user { color: #fff; font-weight: 600; }
.ds-admin-bar-logout { color: #ff8a80; text-decoration: none; }
.ds-admin-bar-logout:hover { color: #ff8a80; text-decoration: underline; }
@media (max-width: 575px) {
  .ds-admin-bar-msg, .ds-admin-bar-sep { display: none; }
  .ds-admin-bar-inner { padding: 8px 14px; gap: 10px; }
}

/* Home "about" block images (Image1/Image2) - the design's box is a fixed
   370x370 square (matches the theme's own default images); crop any
   uploaded size (e.g. 1254x1254) down to that box instead of stretching
   it to the full column width. */
.about5 .about5-images .img1 img,
.about5 .about5-images .img2 img {
  width: 370px;
  height: 370px;
  max-width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* "About / Intro (single full image + text)" block - one uncropped image
   filling the whole column, no square crop and no second overlapping
   thumbnail like the two-image about_intro variant above. */
.about5-images-single .single-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Vanilla-JS lightbox for photo galleries + YouTube videos (ds-lightbox.js) */
.ds-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.ds-lightbox-overlay.is-open { display: flex; }
.ds-lightbox-stage { max-width: 90vw; max-height: 90vh; }
.ds-lightbox-stage.is-video {
  width: 90vw;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}
.ds-lightbox-stage.is-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}
.ds-lightbox-stage img {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  border-radius: 4px;
}
.ds-lightbox-close,
.ds-lightbox-prev,
.ds-lightbox-next {
  position: absolute;
  z-index: 2;
  /* dark disc + white ring + shadow: stays visible over bright/white photos too */
  background: rgba(0, 18, 51, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.ds-lightbox-close:hover,
.ds-lightbox-prev:hover,
.ds-lightbox-next:hover { background: #007200; border-color: #fff; }
.ds-lightbox-counter {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 5px 14px; border-radius: 20px; background: rgba(0, 18, 51, 0.62);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px;
}
.ds-lightbox-counter:empty { display: none; }
.ds-lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}
.ds-lightbox-prev,
.ds-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.ds-lightbox-prev { left: 16px; }
.ds-lightbox-next { right: 16px; }
@media (max-width: 575px) {
  .ds-lightbox-prev, .ds-lightbox-next { width: 40px; height: 40px; }
  .ds-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
}

/* Projects page category filter - these reuse the big .vl-btn6 CTA-button
   style, which is fine on desktop but wraps into an ugly, uneven grid on
   mobile; scope a compact chip style to just this filter row. */
.project-inner-section .btn-area1 a.vl-btn6 {
  padding: 8px 18px;
  font-size: 14px;
  line-height: 1.3;
  border-radius: 999px;
}
.project-inner-section .btn-area1 a.vl-btn6.btn2 {
  background: #0f7a3e;
  color: #fff;
}

/* Mobile: swap the pill row for a single select-box filter instead of a
   wrapped wall of chips. niceSelect (loaded site-wide) styles the <select>
   to match the theme automatically. */
.ds-project-filter-select { display: none; max-width: 320px; margin: 0 auto 30px; }
.ds-project-filter-select .nice-select {
  float: none;
  display: table;
  margin: 0 auto;
  width: 100%;
  border: 2px solid #0f7a3e;
  background: #f2faf5;
  color: #0f7a3e;
  font-weight: 700;
}
.ds-project-filter-select .nice-select:after {
  border-color: #0f7a3e;
}
@media (max-width: 767px) {
  .ds-project-filter-pills { display: none !important; }
  .ds-project-filter-select { display: block; }
}

/* Leadership Photos block (home page, 2-up row of portrait cards) - fixed
   aspect-ratio + object-fit so any uploaded photo size/shape crops cleanly
   and the 2-column row never breaks on mobile (stacks to 1 column there). */
.ds-leadership-card { margin-bottom: 32px; }
.ds-leadership-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.ds-leadership-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ds-leadership-caption {
  text-align: center;
  padding-top: 16px;
}
.ds-leadership-caption h4 { margin: 0; }
.ds-leadership-caption p { margin: 4px 0 0; color: var(--ztc-text-text-7, #6b7280); }

/* Testimonial avatar: name initials when no photo / photo fails to load */
.testimonial5 .testimonial-main-slider .images .img1 .ds-t-initials { display: none; }
.testimonial5 .testimonial-main-slider .images .img1.is-fallback .ds-t-initials {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1f7a0c; color: #fff;
  font-size: 20px; font-weight: 700; letter-spacing: .5px; line-height: 1;
  flex-shrink: 0;
}

/* Spec table: "Heading | Item | Item" cells render as a bullet list */
.project-spec-table td .ds-cell-list {
  margin: 6px 0 0; padding-left: 18px; list-style: disc;
  font-weight: 400;
}
.project-spec-table td .ds-cell-list li { list-style: disc; margin: 2px 0; }

/* Header nav: menu column takes the space left by logo + buttons and never
   wraps to a 2nd line, so extra menu items (e.g. Gallery) still fit -------- */
@media (min-width: 992px) {
  .row-bg1 > .col-lg-2, .row-bg1 > .col-lg-4 { flex: 0 0 auto; width: auto; }
  .row-bg1 > .col-lg-6 { flex: 1 1 0; width: auto; min-width: 0; }
  .homepage5-body .vl-main-menu ul { white-space: nowrap; }
  .homepage5-body .vl-main-menu ul > li > a { padding: 0 9px; }
  .homepage5-body .vl-main-menu ul > li > a.is-current::after { left: 9px; right: 9px; }
  .homepage5-body .vl-main-menu ul.sub-menu { white-space: normal; }
}
@media (min-width: 992px) and (max-width: 1399px) {
  /* not enough room for the full label below 1400px - icon-only calculator button */
  .vl-btn-calc { padding: 13.5px 15px; }
  .vl-btn-calc .vl-btn-calc-text { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .homepage5-body .vl-main-menu ul > li > a { padding: 0 8px; font-size: 15px; }
  .homepage5-body .vl-main-menu ul > li > a.is-current::after { left: 8px; right: 8px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .homepage5-body .vl-main-menu ul > li > a { padding: 0 5px; font-size: 14px; }
  .homepage5-body .vl-main-menu ul > li > a.is-current::after { left: 5px; right: 5px; }
  .row-bg1 .vl-logo img { max-width: 130px; height: auto; }
  .row-bg1 .vl-hero-btn .vl-btn6 { padding: 13.5px 16px; font-size: 17px; }
  .row-bg1 .vl-hero-btn.d-lg-flex { gap: 8px; }
}

/* CTA banner stats: keep all 4 on one line on desktop - longer values like
   "25+ Mega Watts" no longer fit the narrow col-lg-8, so the row may widen
   past it (still centred, still inside the screen) ----------------------- */
@media (min-width: 992px) {
  .go-solar-stats {
    flex-wrap: nowrap;
    width: max-content;
    max-width: calc(100vw - 32px);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .go-solar-stats .stat-item { padding: 8px 22px; white-space: nowrap; }
}
