/* Homepage sections */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero::before {
  content: ' ';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0024592f;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 20px;
  color: white;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content h1 {
  text-transform: capitalize;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero-video {
    width: auto;
    height: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 8px 16px;
  }
}

.about {
  padding: 60px 0;
  background: linear-gradient(#001a3a, #003272);
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  max-width: 400px;
  max-height: 400px;
}

.about-image img {
  max-width: 350px;
  max-height: 350px;
  border-radius: 8px;
}

.main-title {
  text-transform: uppercase;
  font-size: 3rem;
  color: #fff;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #fff;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #eee;
}

@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .about-image,
  .about-text {
    flex: none;
    width: 100%;
  }

  .about-image img {
    max-width: 250px;
    max-height: 250px;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 0.8rem;
  }
}

/* Product Video */
.fault-indicator-video-container {
  overflow: hidden;
  padding: 30px 15px;
  width: 100%;
  position: relative;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Poppins', 'Cairo', sans-serif;
}

.fault-indicator-video-container h2 {
  text-align: center;
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding-bottom: 5px;
  font-size: 28px;
}

.fault-indicator-video-slider {
  max-width: 600px;
  margin: 50px auto;
  display: flex;
  transition: transform 0.5s ease;
}

.fault-indicator-video {
  flex: 0 0 100%;
  background-color: white;
  border-radius: 100px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  box-sizing: border-box;
  opacity: 0.6;
  transform: scale(0.7);
  transition: all 0.5s ease;
}

.fault-indicator-video.active {
  opacity: 1;
  transform: scale(1);
}

.fault-indicator-video {
  display: none;
}

.fault-indicator-video.active {
  display: block;
}

.fault-indicator-video-content {
  width: 100%;
}

.fault-indicator-video-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.fault-indicator-video-author {
  font-style: italic;
  color: #003272;
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .fault-indicator-video-container {
    padding: 30px 10px;
  }

  .fault-indicator-video-container h2 {
    font-size: 22px;
  }

  .fault-indicator-video-container h2:before {
    height: 2px;
    width: 60%;
  }

  .fault-indicator-video-slider {
    max-width: 100%;
    margin: 30px auto;
  }

  .fault-indicator-video {
    border-radius: 8px;
    padding: 15px;
  }

  .fault-indicator-video-author {
    font-size: 12px;
  }
}

/* ----------------------------- */
/* PDLC block - match ISO design */
/* ----------------------------- */

.pdlc-block {
  background: #ffffff;
  padding: 70px 0;
}

.pdlc-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: start;
}

.pdlc-text h2 {
  color: #003272;
  margin-bottom: 12px;
}

.pdlc-text p {
  color: #4b5563;
  line-height: 1.7;
  max-width: 620px;
  font-size: 20px;
}

/* --------------------------------------- */
/* PDLC 2 rows x 3 cols + compact arrows   */
/* Order: 1 2 3                            */
/*        6 5 4                            */
/* --------------------------------------- */

.pdlc-badges {
  --pdlc-gap: 12px;
  --pdlc-line: rgba(0, 50, 114, 0.75);
  --pdlc-head: rgba(0, 50, 114, 0.9);
  --pdlc-arrow: 0.5;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pdlc-gap);
  align-items: stretch;
}

/* Card style aligned with ISO badge look */
.pdlc-badge {
  background: #ffffff;
  border: 1px solid rgba(0, 50, 114, 0.18);
  border-radius: 14px;
  padding: 14px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  display: flex;
  flex-direction: column;
  height: 100%;

  position: relative;
}

.pdlc-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.pdlc-top {
  font-weight: 900;
  color: #003272;
  letter-spacing: 1px;
  font-size: 16px;
  margin-bottom: 10px;
}

.pdlc-icon {
  color: #003272;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

.pdlc-sub {
  margin-top: auto;
  color: #444;
  font-size: 18px;
  line-height: 1.4;
}

/* Place cards to get: 1 2 3 / 6 5 4 */
.pdlc-badges .pdlc-badge:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

/* 1 */
.pdlc-badges .pdlc-badge:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

/* 2 */
.pdlc-badges .pdlc-badge:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

/* 3 */
.pdlc-badges .pdlc-badge:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

/* 4 */
.pdlc-badges .pdlc-badge:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

/* 5 */
.pdlc-badges .pdlc-badge:nth-child(6) {
  grid-column: 1;
  grid-row: 2;
}

/* 6 */

/* 1 -> 2 (right) */
.pdlc-badges .pdlc-badge:nth-child(1)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  width: calc(var(--pdlc-gap) * var(--pdlc-arrow));
  height: 2px;
  background: var(--pdlc-line);
  transform: translateY(-50%);
}

/*Arrow Head*/
.pdlc-badges .pdlc-badge:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  transform: translate(100%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--pdlc-head);
}

/* 2 -> 3 (right) */
.pdlc-badges .pdlc-badge:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  width: calc(var(--pdlc-gap) * var(--pdlc-arrow));
  height: 2px;
  background: var(--pdlc-line);
  transform: translateY(-50%);
}

/*Arrow Head*/
.pdlc-badges .pdlc-badge:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  transform: translate(100%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--pdlc-head);
}

/* 3 -> 4 (down) */
.pdlc-badges .pdlc-badge:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  width: 2px;
  height: calc(var(--pdlc-gap) * var(--pdlc-arrow));
  background: var(--pdlc-line);
  transform: translateX(-50%);
}

/*Arrow Head*/
.pdlc-badges .pdlc-badge:nth-child(3)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  transform: translate(-50%, 100%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--pdlc-head);
}

/* 4 -> 5 (left) */
.pdlc-badges .pdlc-badge:nth-child(4)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  width: calc(var(--pdlc-gap) * var(--pdlc-arrow));
  height: 2px;
  background: var(--pdlc-line);
  transform: translateY(-50%);
}

/*Arrow Head*/
.pdlc-badges .pdlc-badge:nth-child(4)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  transform: translate(-100%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--pdlc-head);
}

/* 5 -> 6 (left) */
.pdlc-badges .pdlc-badge:nth-child(5)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  width: calc(var(--pdlc-gap) * var(--pdlc-arrow));
  height: 2px;
  background: var(--pdlc-line);
  transform: translateY(-50%);
}

/*Arrow Head*/
.pdlc-badges .pdlc-badge:nth-child(5)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * (var(--pdlc-gap) * var(--pdlc-arrow)));
  transform: translate(-100%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--pdlc-head);
}

/* Responsive */
@media (max-width: 900px) {
  .pdlc-inner {
    grid-template-columns: 1fr;
  }

  .pdlc-badges {
    grid-template-columns: 1fr;
  }

  .pdlc-badges .pdlc-badge:nth-child(1),
  .pdlc-badges .pdlc-badge:nth-child(2),
  .pdlc-badges .pdlc-badge:nth-child(3),
  .pdlc-badges .pdlc-badge:nth-child(4),
  .pdlc-badges .pdlc-badge:nth-child(5),
  .pdlc-badges .pdlc-badge:nth-child(6) {
    grid-column: 1;
    grid-row: auto;
  }

  .pdlc-badges .pdlc-badge::before,
  .pdlc-badges .pdlc-badge::after {
    display: none;
  }
}

/* ------------------------------------ */
/* PDLC + ISO/QHSE Combined (new block)  */
/* ------------------------------------ */

.pdlc-compliance-block {
  background: #f8f8f8;
  padding: 70px 0;
}

.qhse-subline {
  margin-top: -6px;
  margin-bottom: 14px;
  color: #2b2f36;
  font-weight: 700;
  font-size: 18px;
}

.pdlc-compliance-block .pdlc-inner {
  grid-template-columns: 1fr;
}

.pdlc-compliance-block .compliance-badges {
  margin-top: 28px;
}

.pdlc-compliance-block .pdlc-text p {
  max-width: 820px;
  font-size: 20px;
}

/* Subtitles inside the combined block */
.pdlc-compliance-block .section-subtitle.split {
  margin-top: 18px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 900;
  color: #003272;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Divider line under subtitle */
.pdlc-compliance-block .section-subtitle.split::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: rgba(0, 50, 114, 0.35);
  margin-top: 10px;
  border-radius: 3px;
}

/* Keep ISO badges spacing clean under subtitle */
.pdlc-compliance-block .compliance-badges {
  margin-top: 0;
}

.link {
  color: #003272;
}

.top-left-image {
  position: absolute;
  top: 120px;
  left: 20px;
  width: 250px;
  opacity: 0.3;
  height: auto;
  z-index: 3;
}

.bottom-right-image {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 250px;
  opacity: 0.3;
  height: auto;
  z-index: 3;
}

.bottom-left-image {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 250px;
  opacity: 0.3;
  height: auto;
  z-index: 3;
}

.our-products h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 2;
}

.product-tree {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
}

.main-line {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 60px;
  background-color: #333;
  z-index: 1;
}

.main-line::before,
.main-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20px;
  background-color: #333;
}

.main-line::before {
  right: 0;
  transform: translateX(30px);
}

.main-line::after {
  left: 0;
  transform: translateX(-30px);
}

.product-category {
  max-width: 400px;
  position: relative;
}

.category-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #fff;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.category-icon img {
  max-width: 80%;
  max-height: 80%;
}

.product-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.subcategory {
  text-align: center;
  margin-top: 20px;
  position: relative;
}

.subcategory::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 50%;
  width: 2px;
  height: 20px;
  background-color: #333;
}

.subcategory h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #555;
}

.subcategory ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  padding: 0;
}

.subcategory li {
  font-size: 1rem;
  margin: 15px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}

.subcategory li img {
  width: 60px;
  height: 60px;
  margin-left: 10px;
  border-radius: 50%;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .our-products h2 {
    font-size: 1.5rem;
  }

  .top-left-image {
    width: 60px;
    top: 40px;
    left: 10px;
  }

  .category-icon {
    width: 80px;
    height: 80px;
  }

  .product-category h3 {
    font-size: 1rem;
  }

  .subcategory h4 {
    font-size: 0.9rem;
  }

  .subcategory li {
    font-size: 0.8rem;
  }

  .bottom-right-image {
    width: 60px;
    top: 10px;
    right: 10px;
  }

  .bottom-left-image {
    width: 60px;
  }

  .subcategory li img {
    width: 50px;
    height: 50px;
  }

  .product-tree {
    flex-direction: column;
    align-items: center;
  }

  .product-category {
    margin-bottom: 40px;
  }

  .main-line {
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
  }

  .main-line::before,
  .main-line::after {
    display: none;
  }
}

.our-products {
  background: linear-gradient(#001a3a, #003272);
  padding: 4rem 0rem;
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
}

.product-showcase {
  font-family: 'Cairo', sans-serif;
  padding: 4rem 2rem;
  background: linear-gradient(#001a3a, #0056b3);
}

/* ------------------------------------ */
/* PRODUCTS GRID - 5 items now, 6 later */
/* ------------------------------------ */

.product-container {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.contain {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  gap: 2rem;
  padding: 2rem;
  flex: none;
  max-width: none;
}

.contain:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-text {
  font-size: 20px;
  font-weight: 100;
  line-height: 1.5rem;
  color: #b6c6d8;
  margin: 0;
}

.product-container.reverse {
  direction: rtl;
}

.product-container.reverse>* {
  direction: ltr;
}

/* REMOVE THESE RULES WHEN ADDING A 6TH ITEM */
.product-container>.contain:nth-child(4) {
  grid-column: 1;
}

.product-container>.contain:nth-child(5) {
  grid-column: 2;
}

.product-image {
  max-width: 100%;
  text-align: center;
  flex: 1;
  position: relative;
}

.product-image img {
  width: 100%;
  max-width: 320px;
  height: 220px;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  object-fit: contain;
  object-position: center;
}

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

.shape-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(-90deg, #003272, #0056b3);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 1;
  opacity: 1;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.product-info ul {
  list-style-type: none;
  padding: 0;
}

.product-info li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #34495e;
  transition: transform 0.2s ease;
}

.product-info li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #3498db;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.product-info li:hover {
  transform: translateX(5px);
}

.product-info li:hover::before {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .product-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .product-container>.contain:nth-child(4),
  .product-container>.contain:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {

  .product-container,
  .product-container.reverse {
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
  }

  .contain {
    gap: 1rem;
    max-width: 100%;
  }

  .product-image {
    margin-bottom: 2rem;
  }

  .product-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }

  .product-info {
    padding: 1rem;
  }

  .product-link {
    padding-left: 1rem;
  }

  .product-info h2 {
    font-size: 1.5rem;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }

  .product-info li {
    font-size: 0.8rem;
  }
}

@keyframes float {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -50%) rotate(10deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.shape-bg {
  animation: float 4s ease-in-out infinite;
}

.learn-more-bar {
  z-index: 99;
  background: linear-gradient(90deg, #ffffff, #b6c6d8);
  padding: 15px;
  text-align: center;
  margin-top: 20px;
}

.learn-more-btn {
  z-index: 999;
  font-family: 'Cairo', sans-serif;
  background-color: #ffffff;
  color: #003272;
  border: none;
  padding: 0.2rem 1rem;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  background-color: #ffffff;
  padding: 50px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 80%;
  overflow-y: auto;
  text-align: right;
}

.overlay li {
  margin: 10px;
}

.overlay-content h3 {
  color: #003272 !important;
  margin-bottom: 20px;
  font-size: 26px;
}

.overlay-content strong {
  color: #0b0b0b !important;
  margin-bottom: 20px;
  font-size: 18px;
}

.overlay-content p {
  color: #333;
  line-height: 1.6;
  font-size: 18px;
}

@media (max-width: 768px) {
  .learn-more-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .overlay-content {
    padding: 20px;
    max-width: 90%;
  }

  .overlay-content h2 {
    font-size: 20px;
  }

  .overlay-content h3 {
    font-size: 18px;
  }

  .overlay-content p {
    font-size: 14px;
  }
}

.video-section {
  background: #0b0b0b;
  text-align: center;
}

.video-section {
  height: 600vh;
  position: relative;
}

.video-container {
  width: 100%;
  height: 100vh;
  position: sticky;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #0b0b0b;
}

.video-section h2 {
  padding-top: 50px;
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: 52px;
}

.video-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  z-index: 99;
  left: 0;
  width: 90%;
  height: 3px;
  background: linear-gradient(90deg, #00bfa5, transparent);
}

#bgVideo {
  width: 40%;
  height: 100%;
  right: 0;
  float: right;
  object-fit: cover;
}

.inner-text {
  font-family: 'Raleway', sans-serif;
  position: absolute;
  font-size: 36px;
  max-width: 550px;
  color: white;
  text-align: left;
  left: 15%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-left: 5px solid #00bfa5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.inner-text::before {
  content: '"';
  font-size: 72px;
  position: absolute;
  left: -40px;
  top: -10px;
  color: #00bfa5;
  font-family: Georgia, serif;
}

.inner-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .video-section h2 {
    padding-top: 30px;
    font-size: 24px;
  }

  .video-section h2::after {
    width: 100%;
  }

  #bgVideo {
    width: 100%;
    float: none;
  }

  .inner-text {
    font-size: 18px;
    max-width: 90%;
    left: 10%;
    right: 10%;
    padding: 15px;
  }

  .inner-text::before {
    font-size: 48px;
    left: -30px;
    top: -5px;
  }
}

.contact {
  padding: 60px 0;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden;
}

.contact-info {
  padding: 20px 15px;
}

.contact-info h3 {
  font-size: 24px;
}

.contact-info p {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 400px;
  color: #333;
}

.contact-info i {
  color: #003272;
  margin: 0 5px;
}

.contact-info img {
  width: 250px;
}

.contact-container {
  flex: 1;
  max-width: 800px;
  margin: 0 50px;
  padding: 20px 3%;
  border-radius: 20px;
  border: 1px solid #003272;
}

.contact h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  color: #003272;
}

#contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  align-self: flex-start;
  padding: 10px 20px;
  background-color: #003272;
  color: #fff;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: #003272dd;
}

@media screen and (max-width: 768px) {
  .contact-container {
    margin: 5px;
  }

  .contact h2 {
    font-size: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }

  .form-group label {
    font-size: 14px;
  }

  .submit-btn {
    font-size: 14px;
  }

  .contact-info {
    padding: 15px;
    text-align: center;
  }

  .contact-info h3 {
    font-size: 20px;
  }

  .contact-info p {
    font-size: 16px;
  }
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
}

.contact-info-box p {
  margin: 0;
}

.qhse-policy {
  font-family: 'Cairo', sans-serif;
  background-color: #f0f4f8;
  padding: 4rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.5rem;
  color: #34495e;
  margin-bottom: 3rem;
  font-weight: 300;
}

.policy-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.policy-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.policy-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.policy-icon {
  font-size: 2.5rem;
  font-weight: bold;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.policy-item h4 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.policy-item p {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.6;
}

#quality .policy-icon,
#leadership .policy-icon,
#health-safety .policy-icon,
#environment .policy-icon {
  background-color: #003272;
  color: #ffffff;
}

.policy-item.active .policy-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .policy-icon {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .policy-item {
    width: 100%;
    max-width: 300px;
  }
}


/* Company overview and compliance blocks */
/* Company Overview section */
.company-overview {
  background: #f8f8f8;
  padding: 4rem 2rem;
}

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

.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.overview-text h2 {
  color: #003272;
}

.overview-text p {
  margin-top: 12px;
  line-height: 1.7;
  color: #333;
  max-width: 650px;
}

.primary-btn {
  display: inline-block;
  margin-top: 16px;
  background: #003272;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.primary-btn:hover {
  opacity: 0.92;
}

.overview-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 50, 114, 0.15);
  background: #ffffff;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #003272;
  color: #ffffff;
}

.stat-title {
  font-weight: 800;
  color: #003272;
}

.stat-sub {
  font-size: 14px;
  color: #444;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ISO + QHSE compliance block */
.compliance-block {
  padding: 4rem 2rem;
  background: #f8f8f8;
}

.compliance-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.compliance-text h2 {
  color: #003272;
}

.compliance-text p {
  margin-top: 12px;
  line-height: 1.7;
  color: #333;
}

.compliance-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.compliance-btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.compliance-btn.primary {
  background: #003272;
  color: #ffffff;
}

.compliance-btn.outline {
  border: 2px solid #003272;
  color: #003272;
  background: transparent;
}

.compliance-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .compliance-badges {
    grid-template-columns: 1fr;
  }
}

.iso-badge {
  background: #ffffff;
  border: 1px solid rgba(0, 50, 114, 0.18);
  border-radius: 14px;
  padding: 14px;
}

.iso-top {
  font-weight: 900;
  color: #003272;
  letter-spacing: 1px;
}

.iso-code {
  font-size: 26px;
  font-weight: 900;
  color: #003272;
  margin-top: 6px;
}

.iso-sub {
  margin-top: 6px;
  font-size: 18px;
  color: #444;
}

@media (max-width: 900px) {
  .compliance-inner {
    grid-template-columns: 1fr;
  }
}



/* Force homepage sections full width */
.about,
.contact {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.about {
  background: linear-gradient(#001a3a, #003272);
}

/* =========================================================
   EECL homepage refresh - clean hero, sections, and CTAs
   Added to support the updated index.html structure.
   ========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  height: auto;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(0, 122, 194, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3f7fb 48%, #e9f0f7 100%);
  color: #003272;
  display: flex;
  align-items: center;
  padding: 86px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(0, 50, 114, 0.08), transparent 56%),
    radial-gradient(circle at 12% 78%, rgba(0, 50, 114, 0.10), transparent 26%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 44px solid rgba(0, 50, 114, 0.06);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
}

.hero-content {
  position: relative;
  top: auto;
  transform: none;
  text-align: left;
  color: #003272;
  padding: 0;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 50, 114, 0.08);
  color: #0056b3;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #0077c8;
  box-shadow: 0 0 0 5px rgba(0, 119, 200, 0.13);
}

.hero-title,
.hero-content h1 {
  max-width: 780px;
  margin: 0 0 22px;
  color: #003272;
  text-transform: none;
  font-size: clamp(2.2rem, 5vw, 4.65rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.hero-text,
.hero-content p {
  max-width: 700px;
  margin: 0 0 30px;
  color: #44556b;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.75;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .compliance-btn,
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-actions .compliance-btn:hover,
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 50, 114, 0.16);
}

.hero-visual,
.hero-image {
  position: relative;
  min-height: 440px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.92));
  border: 1px solid rgba(0, 50, 114, 0.12);
  box-shadow: 0 24px 70px rgba(0, 35, 89, 0.12);
  overflow: hidden;
}

.hero-visual::before,
.hero-image::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(0, 50, 114, 0.08);
  border-radius: 24px;
}

.hero-visual::after,
.hero-image::after {
  content: "Smart Grid\A Monitoring";
  white-space: pre;
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #003272;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 50, 114, 0.22);
}

.hero-visual img,
.hero-image img {
  position: relative;
  z-index: 1;
  width: min(62%, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 50, 114, 0.16));
}

.section-heading {
  width: min(920px, 92%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-subtext {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.75;
}

.our-products .section-heading .products-title {
  margin-bottom: 12px;
}

.solutions-section {
  background: #ffffff;
  padding: 76px 0;
}

.solutions-section .section-heading h2 {
  color: #003272;
}

.solutions-section .section-subtext {
  color: #4b5563;
}

.solutions-grid {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  min-height: 250px;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 50, 114, 0.14);
  box-shadow: 0 16px 44px rgba(0, 35, 89, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(0, 35, 89, 0.12);
}

.solution-card i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 22px;
  background: rgba(0, 50, 114, 0.08);
  color: #003272;
  font-size: 1.5rem;
}

.solution-card h3 {
  color: #003272;
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.35;
}

.solution-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
}

.about-actions {
  margin-top: 24px;
}

.contact-intro {
  margin: -24px 0 28px;
  text-align: center;
  color: #4b5563;
  line-height: 1.7;
}

.contact-info-box a {
  color: #333;
}

.contact-info-box a:hover {
  color: #003272;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-image {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    height: auto;
    padding: 48px 0 52px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
    font-size: 0.86rem;
  }

  .hero-title,
  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-text,
  .hero-content p {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .compliance-btn,
  .hero-btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-visual,
  .hero-image {
    min-height: 230px;
    border-radius: 24px;
  }

  .hero-visual img,
  .hero-image img {
    width: min(56%, 220px);
  }

  .hero-visual::after,
  .hero-image::after {
    right: 14px;
    bottom: 14px;
    font-size: 0.78rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Fine-tuning - hero logo centering
   ========================================================= */
.hero-visual,
.hero-image {
  padding: 36px 40px;
}

.hero-visual::after,
.hero-image::after {
  content: none !important;
  display: none !important;
}

.hero-visual img,
.hero-image img {
  display: block;
  width: min(68%, 320px);
  max-width: 320px;
  margin: 0 auto;
  transform: translateY(-8px);
}

@media (max-width: 768px) {

  .hero-visual,
  .hero-image {
    padding: 24px 22px;
  }

  .hero-visual img,
  .hero-image img {
    width: min(66%, 240px);
    max-width: 240px;
    transform: translateY(-4px);
  }
}

/* About section visibility fix */
.about-subtitle,
.about-text h3 {
  color: #ffffff;
  opacity: 0.95;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-text p {
  color: rgba(255, 255, 255, 0.92);
}

.about-text .main-title {
  color: #ffffff;
}