/* ==========================================================================
   OUR BUSINESS PAGE STYLES (Consolidated)
   ========================================================================== */

/* --- Global Section Settings --- */
.business-page-main section {
  padding: 80px 0;
  background-color: white;
}

.centered {
  text-align: center;
  margin-bottom: 50px;
  color: #003580;
  font-size: 28px;
  line-height: 42px;
}
.section-header {
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: left;
}

.section-header h2 {
  font-size: 56px;
  margin: 20px 0;
  color: #003580;
  line-height: 100%;
}

.badge {
  display: inline-block;
  border: 1.5px solid #009a44;
  color: #009a44;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  font-family: inter;
  margin-bottom: 20px;
}

/* --- 1. Hero Section --- */
.business-hero {
  padding: 40px 0 20px 0 !important;
}
.hero-card {
  position: relative;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); */
  display: flex;
  align-items: flex-end;
  padding: 60px;
}
.hero-overlay h1 {
  color: #ffffff;
  font-size: 64px;
  font-weight: 700;
  margin: 0;
}

/* --- 2. Stats Section --- */
.business-stats {
  padding: 20px 0 60px 0 !important;
}
.stats-flex {
  display: flex;
  gap: 30px;
}
.stat-item {
  flex: 1;
  background: #f9f6f1;
  padding: 45px;
  border-radius: 20px;
  border: 1px solid #bfc9d3;
  transition: 0.3s ease;
}
.stat-item h2 {
  font-size: 48px;
  color: #003580;
  margin-bottom: 15px;
  font-weight: 700;
}
.stat-item p {
  font-size: 16px;
  color: #003580;
  line-height: 1.6;
  margin: 0;
}

/* --- 3. Process Section (Timeline Update) --- */
.process-section {
  background-color: #ffffff;
  padding: 100px 0;
}
.process-intro {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.process-flow-container {
  position: relative;
  max-width: 1100px;
  margin: 60px auto 0;
}

/* Vertical Connecting Line */
.process-line {
  position: absolute;
  left: 35px;
  top: 100px;
  bottom: 80px;
  width: 2px;
  background-color: #bfc9d3;
  z-index: 1;
}

.process-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.process-number-col {
  flex: 0 0 90px;
}

.proc-num {
  width: 70px;
  height: 70px;
  background-color: #e0ece6;
  border: 1px solid #bfc9d3;
  color: #888;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.process-content-col {
  flex: 1;
  /* padding-top: 10px; */
}
.process-content-col h3 {
  font-size: 22px;
  color: #000;
  margin-bottom: 15px;
  margin-top: 0;
}
.process-content-col p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.process-image-col {
  flex: 0 0 350px;
}
.process-image-col img {
  width: 100%;
  border-radius: 16px;
  height: 200px;
  object-fit: cover;
}

/* --- Technology & Innovation Dashboard Section --- */
.tech-section {
  background-color: #f0f9ff !important; /* Changed to your Brand Navy Blue */
  padding: 100px 0;
  position: relative;
  width: 100%;
}

/* Ensure the Section Title and Badge are visible on Blue */
.centered h2 {
  font-size: 32px;
}

/* .tech-section .centered .badge {
  color: #ffffff !important;
  border-color: #ffffff !important;
} */
.badge {
  /* display: inline-block;
  border: 1.5px solid #009a44;
  color: #009a44; */
  padding: 8px 20px;
  /* border-radius: 50px; */
  font-size: 15px;
  font-weight: 500;
  /* text-transform: uppercase;
  font-family: inter;
  margin-bottom: 20px; */
}

.tech-dashboard-grid {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 40px; /* Increased gap slightly for a cleaner look */
  padding: 0;
  margin: 0;
}

.tech-dashboard-row {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* Common box styles - Borders Removed */
.tech-img-box,
.tech-txt-box {
  flex: 1;
  flex: 0 0 calc(50% - 15px); /* This forces a 50/50 split */
  max-width: calc(50% - 15px);
  border-radius: 20px;
  overflow: hidden;
  border: solid 1px #bfc9d3; /* Removed the 0.5px border */
  min-height: 380px;
  display: flex;
  background-color: #ffffff; /* Card color white */
}

.tech-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-txt-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none; /* Removed the shadow for a flat, clean look */
  padding-right: 40px; /* Added padding to ensure text doesn't hit the edge */
}

.tech-txt-box h3 {
  font-size: 24px;
  color: #000;
  font-weight: 700;
  margin-bottom: 20px;
  margin-left: 40px;
}

.tech-txt-box p {
  font-size: 16px;
  color: #555; /* Slightly darker grey for better readability on white */
  line-height: 1.7;
  margin-left: 40px;
}

/* --- Mobile Responsive Updates --- */
@media (max-width: 768px) {
  .tech-dashboard-row,
  .tech-dashboard-row.reverse {
    flex-direction: column;
    gap: 0;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 30px;
    border: none; /* Ensure no borders on mobile */
  }

  /* .tech-img-box {
    min-height: 250px;
    height: 250px;
  } */
  .tech-img-box {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 250px !important; /* Force a reasonable height */
    min-height: 250px !important;
    border: none !important;
    border-radius: 0 !important;
  }

  /* .tech-txt-box {
    min-height: auto;
    padding: 30px 0;
    margin-left: 0;
  } */
  .tech-txt-box {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 30px 20px !important; /* Tighten up the huge white space */
    border: none !important;
    border-radius: 0 !important;
  }

  .tech-txt-box h3,
  .tech-txt-box p {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Force Image on TOP for every mobile section */
  .tech-dashboard-row.reverse .tech-txt-box {
    order: 2 !important;
  }
  .tech-dashboard-row.reverse .tech-img-box {
    order: 1 !important;
  }
}

/* --- 5. Infrastructure Section --- */
.infra-section {
  padding: 80px 0;
  background-color: #f7f9fa !important;
  position: relative;
  width: 100%;
}
.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: stretch; /* Forces all cards in a row to be equal height */
}
/* .infra-card {
  border-radius: 20px;
  overflow: visible;
  background: #f8f9fa;
} */
.infra-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: visible; /* Important to allow the shadow box to pop */
  background: transparent;
  height: 100%;
}
/* .infra-card img {
  width: 100%;
  height: 400px;
  object-fit: fill;
  margin-bottom: 10px;
} */
.infra-card img {
  width: 100%;
  height: 350px; /* Consistent height for images */
  object-fit: cover; /* Prevents stretching */
  border-radius: 16px;
  display: block;
}
/* .infra-info {
  padding: 25px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
} */
.infra-info {
  /* margin: -60px 20px 0 20px; */
  margin-top: 10px;
  padding: 30px;
  position: relative;
  z-index: 2;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);

  /* Flexbox to handle different text lengths */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.infra-info h3 {
  font-size: 22px;
  color: #1a2b56;
  margin: 0 0 12px 0;
}

.infra-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1; /* Pushes the bottom of the white box to align with neighbors */
}

/* --- 6. Mobile Responsive Updates --- */
@media (max-width: 991px) {
  .process-image-col {
    flex: 0 0 250px;
  }
  .hero-overlay h1 {
    font-size: 48px;
  }
  .infra-grid {
    gap: 60px; /* More gap to account for the overlapping boxes */
  }
}

@media (max-width: 768px) {
  .business-hero {
    padding: 20px 0 !important;
  }
  .hero-card {
    height: 350px;
    border-radius: 16px;
  }
  .hero-overlay {
    padding: 30px;
  }
  .hero-overlay h1 {
    font-size: 36px;
  }

  .stats-flex {
    flex-direction: column;
    gap: 20px;
  }
  .stat-item {
    padding: 30px;
  }
  .stat-item h2 {
    font-size: 32px;
  }

  /* Process Mobile (Matches Screenshot) */
  .process-line {
    top: 20px;
    left: 20px;
    bottom: 5px;
  }
  .process-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-left: 50px;
  }
  .process-number-col {
    position: absolute;
    left: 0;
    top: 15px;
  }
  .proc-num {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .process-content-col,
  .process-image-col {
    width: 100%;
    flex: none;
  }
  .process-image-col img {
    height: 180px;
  }

  /* .tech-main-grid {
    flex-direction: column;
  }
  .tech-side-grid {
    display: block;
  }
  .tech-small-card {
    height: auto;
    margin-bottom: 30px;
  } */

  /* .infra-card img {
    height: 300px;
  } */

  /* .infra-info {
    margin: -40px 15px 0 15px; 
    padding: 25px;
  } */
  /* .infra-grid {
    grid-template-columns: 1fr;
  } */

  .infra-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .infra-card img {
    height: 300px;
  }

  .infra-info {
    /* margin: -40px 15px 0 15px; */
    padding: 20px;
  }

  .infra-info h3 {
    font-size: 18px;
  }
}
/* ==========================================================================
   PLANT ADDRESS SECTION STYLES
   ========================================================================== */

.plant-address-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.address-flex {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* --- Left Column: Image Box --- */
.address-image-box {
  flex: 1.2;
  position: relative;
  height: 500px; /* Fixed height for desktop alignment */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

/* --- Floating Address Card (Desktop) --- */
.address-floating-card {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.address-floating-card h3 {
  font-size: 24px;
  color: #003580; /* ZEBPL Navy Blue */
  font-weight: 700;
  margin-bottom: 12px;
}

.address-floating-card p {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

/* --- Right Column: Map Box --- */
.address-map-box {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eeeeee;
}

.address-map-box img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* ==========================================================================
   MOBILE RESPONSIVE (Matches Screenshot 1.42.40 AM)
   ========================================================================== */

@media (max-width: 768px) {
  .address-flex {
    flex-direction: column; /* Stack image and map vertically */
    gap: 20px;
  }

  .address-image-box {
    flex: none;
    height: auto; /* Allow box to grow with content */
    border-radius: 16px;
    overflow: visible; /* Allow floating card to stack below if needed */
  }

  .address-image-box img {
    height: 250px; /* Set fixed height for the image part on mobile */
    border-radius: 16px;
  }

  /* Transform Floating Card into a Stacked Card on Mobile */
  .address-floating-card {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: -40px; /* Overlap the image slightly like in the design */
    margin-left: 15px;
    margin-right: 15px;
    padding: 25px;
    width: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: left;
  }

  .address-floating-card h3 {
    font-size: 20px;
  }

  .address-map-box {
    height: 300px;
    border-radius: 16px;
  }
}
/* ==========================================================================
   FIXED PLANT ADDRESS SECTION
   ========================================================================== */

.plant-address-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.address-flex {
  display: flex;
  gap: 30px;
  align-items: stretch; /* Ensures map and image have same height */
  justify-content: center;
}

/* Image container sizing */
.address-image-box {
  flex: 1; /* Changed from 1.2 to 1 for perfect symmetry */
  position: relative;
  height: 480px; /* Fixed height for dashboard look */
  border-radius: 24px;
  overflow: hidden;
}

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

/* Floating Card on Desktop */
.address-floating-card {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.address-floating-card h3 {
  font-size: 22px;
  color: #003580; /* Signature Navy Blue */
  font-weight: 700;
  margin-bottom: 10px;
}

.address-floating-card p {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

/* Map container sizing */
.address-map-box {
  flex: 1;
  height: 480px; /* Must match image height */
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eeeeee;
}

.address-map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   MOBILE VIEW FIX (Matches Screenshot 1.42.40 AM)
   ========================================================================== */

@media (max-width: 768px) {
  .address-flex {
    flex-direction: column;
    gap: 0; /* Remove gap so card can overlap */
  }

  .address-image-box {
    height: 320px; /* Smaller height for mobile image */
    border-radius: 16px;
    overflow: visible; /* CRITICAL: allows card to sit "outside" the box */
    margin-bottom: 40px; /* Space for the overlapping card */
  }

  .address-image-box img {
    border-radius: 16px;
  }

  /* Transform floating card to overlapping card */
  /* .address-floating-card {
    position: relative;
    bottom: 50px;
    left: 15px;
    right: 15px;
    margin: 0;
    width: calc(100% - 30px);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  } */

  /* .address-floating-card h3 {
    font-size: 18px;
  } */
  /* 
  .address-map-box {
    height: 350px;
    margin-top: -30px;
    border-radius: 16px;
  } */
}
