/* 🌄 Banner */
.automation-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
}

/* Layout */
.automation-layout {
  display: flex;
  gap: 40px;
  padding: 60px 20px;
  background-color: var(--theme-bg-light);
  flex-wrap: wrap;
}

/* 📎 Brochure Button */
.brochure-section {
  text-align: center;
  padding: 40px 20px 20px 20px;
  width: 100%;
  border-top: .1px solid red;
  margin-top: 30px;
}

.brochure-btn {
  background-color: var(--theme-color);
  color: var(--color-white);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: var(--box-shadow2);
  transition: var(--transition2);
}

.brochure-btn:hover {
  background-color: #66b820;
}

/* 🧭 Sidebar */
.sidebar {
  /*flex: 1 1 260px;*/
  /*padding: 20px;*/
  max-height: 630px;
  overflow-y: auto;
  background: var(--color-white);
  padding: 10px 10px;
  border-radius: 10px;
  box-shadow: var(--box-shadow2);
}

.sidebar h3 {
  font-family: var(--heading-font);
  font-size: 1.4em;
  color: var(--theme-color);
  margin-bottom: 25px;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  text-decoration: none;
  padding: 10px;
  color: #000;
  word-wrap: break-word;
  font-weight: 500;
  display: block;
}

.sidebar .active {
  color: white;
  background-color: var(--theme-color);
}

.sidebar a:hover {
  color: white;
  background-color: var(--theme-color);

}

/* 📘 Content */
.automation-content {
  flex: 2 1 600px;
  max-width: 900px;
}

/* Sections */
.auto-section {
  margin-bottom: 10px;
}

.auto-section h2 {
  font-family: var(--heading-font);
  font-size: 2em;
  color: var(--theme-color);
  margin-bottom: 20px;
}

.key_domains {
  font-family: var(--heading-font);
  font-size: 2em;
  color: var(--theme-color);
  margin-bottom: 20px;
}


.auto-section p {
  font-size: 1.1em;
  color: #000;
}

/* 🔩 Domain Cards */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.domain-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--box-shadow2);
  transition: var(--transition2);
}

.domain-card:hover {
  transform: translateY(-4px);
}

/* 🧠 Technology Table */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  box-shadow: var(--box-shadow);
}

.tech-table th,
.tech-table td {
  padding: 15px;
  border: 1px solid var(--border-info-color);
  text-align: left;
}

/* 📱 Mobile Tweaks */
@media (max-width: 768px) {
  .automation-layout {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    max-height: none;
    width: 100%;
  }

  .automation-content {
    width: 100%;
  }

  .brochure-btn {
    width: 90%;
    margin: 0 auto;
    display: inline-block;
  }
}