/* css/industries.css */

/* Global CSS Variables */
:root {
  --d3f-blue: #0D407F;
  --d3f-green: #2C9A3D;
}

/* Industries Hero Banner (using hero1.png) */
.industries-hero {
  position: relative;
  background: url("../images/hero1.png") no-repeat center center/cover;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
.industries-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
  z-index: 1;
}
.industries-hero .container {
  position: relative;
  z-index: 2;
}
.industries-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.industries-hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* Industries Details Section */
.industries-details {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.industry-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
  transition: transform 0.3s ease;
}
.industry-card:hover {
  transform: translateY(-5px);
}
/* Alternate layout for even-numbered cards */
.industry-card:nth-child(even) {
  flex-direction: row-reverse;
}

.industry-image {
  flex: 1 1 40%;
  max-width: 40%;
}
.industry-image img {
  width: 100%;
  height: auto;
  display: block;
}
.industry-info {
  flex: 1 1 60%;
  max-width: 60%;
  padding: 20px;
}
.industry-info h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--d3f-blue);
}
.industry-info p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}
.industry-focus {
  list-style: disc inside;
  margin-bottom: 20px;
  color: #333;
}
.industry-focus li {
  margin-bottom: 5px;
}
.industry-info .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--d3f-green);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.industry-info .btn:hover {
  background-color: #249435;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
  .industry-card {
    flex-direction: column;
  }
  .industry-image,
  .industry-info {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .industry-info {
    padding: 15px;
  }
  .industries-hero h1 {
    font-size: 2.5rem;
  }
  .industries-hero p {
    font-size: 1.1rem;
  }
}
