/* ================================
   ABOUT AGEAN PAGE STYLING
   ================================ */

/* Intro Section */
#custom-filtration {
  margin: 40px auto;
  padding: 0px 0px;
  background-color: #eee;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  max-width: 1100px;
}

#custom-filtration .intro-topblock {
  background-color: #f0f8ff;
  padding: 10px 10px;
  border-radius: 12px 12px 0 0;
}
#custom-filtration .intro-bottomblock {
  background-color: #f0f8ff;
  padding: 10px 10px;
  border-radius: 0 0 12px 12px;
}

#custom-filtration .intro-text h2 {
  font-size: 28px;
  color: #00658C;
  margin-bottom: 5px;
  text-align: center;
}

#custom-filtration .intro-text p,
#custom-filtration .closing-text p {
  text-align: justify;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

/* Divider line */
#custom-filtration .section-divider_t {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 0 0 40px 0; /* spacing below line */
}

/* Divider line */
#custom-filtration .section-divider_b {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 40px 0 0 0; /* spacing below line */
}

/* Topics Block */
.topics-block {
  background-color: #eee;
  padding: 10px 0;
}

.filtration-topics {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.topic {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-text {
  width: 100%;
  text-align: left;
}

.topic-text h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #007c9d;
}

.topic-text p {
  margin: 0;
  line-height: 1.4;
  text-align: justify;
  color: #444;
}

/* INDUSTRIES WE SERVE — 3x4 Grid with PNG Icons and Hover Effects */

#industries .industry-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
  align-items: start;
}

/* Ensure each grid item behaves as a single cell, not full-width */
#industries .industry-grid > .industry-block {
  grid-column: auto !important;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding: 5px;
}

/* Prevent inherited flex/grid styles from parents causing expansion */
#industries .industry-grid > * {
  min-width: 0;
}

/* Icon square */
#industries .industry-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* PNG icon inside square */
#industries .industry-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* Text rectangle */
#industries .industry-label {
  width: 160px;   /* consistent width */
  height: 60px;   /* match icon height */
  background-color: #eee;
  border-radius: 8px;
  color: #00658C;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;   /* 🔥 removes underline */
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

/* When label is hovered, affect its parent block */
#industries .industry-label:hover {
  background-color: #f0f8ff;
  color: #000;
}

#industries .industry-label:hover {
  /* climb up to parent and style the icon */
}

#industries .industry-block:has(.industry-label:hover) .industry-icon img {
  filter: grayscale(0%);
}


/* Make the whole block clickable */
#industries .industry-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none; /* remove underline */
  color: inherit;        /* inherit text color */
}

/* Ensure hover effects still apply */
#industries .industry-link:hover .industry-label {
  background-color: #f0f8ff;
  color: #000;
}

#industries .industry-link:hover .industry-icon img {
  filter: grayscale(0%);
}


/* Responsive layout */
@media (max-width: 992px) {
  #industries .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #industries .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* Advantages Section */
#advantages {
  margin: 40px auto;
  max-width: 1000px;
  padding: 20px;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.advantage {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd; /* subtle divider */
}

.advantage-heading {
  flex: 1 1 200px; /* left column */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.advantage-icon {
  width: 60px;   /* adjust size */
  height: auto;
}

.advantage-heading h3 {
  font-size: 1.4rem;
  color: #007c9d;
  margin: 0;
}

.advantage-text {
  flex: 3 1 600px; /* right column */
}

.advantage-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
  .advantage {
    flex-direction: column;
    text-align: center;
  }
  .advantage-heading, .advantage-text {
    flex: 1 1 100%;
  }
}
