/* ===== Hero Section ===== */
.automation-hero {
  background: linear-gradient(to right, #0057b8, #00b894);
  color: #ffffff;
  padding: 50px 20px 40px;
  text-align: center;
}
.automation-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.automation-hero p {
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.automation-hero .btn-primary {
  background: #ffffff;
  color: #0057b8;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
  border: none;
}
.automation-hero .btn-primary:hover {
  background: #eaf3ff;
  color: #003c84;
}

/* ========== Tools Section ========== */
.automation-tools-multicolor {
  background: #f7fbff;
  padding: 60px 20px;
  text-align: center;
}
@media (max-width: 768px) {
  .automation-tools-multicolor {
    padding: 30px 16px;
  }
}
@media (max-width: 480px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* Section Headings */
.tools-heading,
.automation-tools-multicolor h2 {
  font-size: 32px;
  font-weight: 700;
  color: #002f6c;
  margin-bottom: 30px;
  position: relative;
}
.tools-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #00b894;
  margin: 12px auto 0;
  border-radius: 4px;
}

/* Section Subtext */
.section-subtext,
.tools-short-description {
  font-size: 15.5px;
  color: #5c5f63;
  text-align: center;
  margin: 0 auto 32px;
  max-width: 720px;
  line-height: 1.6;
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

/* Tool Card */
.tool-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid #e0e6ed;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-5px);
}
.tool-icon {
  font-size: 30px;
  margin-bottom: 10px;
}
.tool-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #223344;
}
.tool-card p {
  font-size: 14.6px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 14px;
}
.tool-pricing {
  background: #f5f8ff;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  margin-bottom: 12px;
  color: #222;
}
.tool-note {
  background: #fff9e8;
  border-left: 4px solid #f0c040;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 18px;
}

/* Buttons */
.btn-outline-blue,
.btn-outline-green,
.btn-outline-violet {
  display: inline-block;
  text-align: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  border: 2px solid;
}
.btn-outline-blue {
  color: #0066ff;
  border-color: #0066ff;
}
.btn-outline-blue:hover {
  background: #0066ff;
  color: #fff;
}
.btn-outline-green {
  color: #00aa66;
  border-color: #00aa66;
}
.btn-outline-green:hover {
  background: #00aa66;
  color: #fff;
}
.btn-outline-violet {
  color: #8e44ad;
  border-color: #8e44ad;
}
.btn-outline-violet:hover {
  background: #8e44ad;
  color: #fff;
}

/* Pricing Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 3px;
  margin-right: 6px;
}
.badge.free {
  background: #d8f8ec;
  color: #007e64;
}
.badge.pro {
  background: #dfefff;
  color: #0057b8;
}
.badge.elite {
  background: #f5e6fa;
  color: #6c1ba1;
}

/* === LinkedIn Tools Description Section === */
.tools-description-section {
  background-color: #f4f9fc;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
}

.description-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
  color: #333;
}

.description-wrapper p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  text-indent: 0;
}

.description-wrapper strong {
  color: #0057b8;
  font-weight: 600;
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
  .tools-description-section {
    padding: 40px 16px;
  }

  .description-wrapper {
    padding: 24px 18px;
    font-size: 15px;
  }

  .description-wrapper p {
    line-height: 1.7;
    margin-bottom: 16px;
  }
}

/* ===== Why LinkedIn Automation Section ===== */
.automation-why {
  padding: 60px 20px;
  background-color: #f8fbff;
}

.automation-why h2 {
  font-size: 28px;
  font-weight: 700;
  color: #002855;
  margin-bottom: 36px;
  text-align: center;
}

/* Uniform Grid Layout for Benefits */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Benefit Card Styles */
.benefit-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-size: 18px;
  color: #0057b8;
  font-weight: 600;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #444;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .automation-why {
    padding: 40px 16px;
  }

  .automation-why h2 {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .benefit-card {
    padding: 20px 16px;
  }

  .benefit-icon {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .benefit-card h3 {
    font-size: 16px;
  }

  .benefit-card p {
    font-size: 14px;
  }
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  font-size: 28px;
  color: #002855;
  font-weight: 700;
  margin-bottom: 36px;
}

/* ===== Use Case Grid ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* ===== Use Case Card ===== */
.usecase-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.3s ease;
}

.usecase-card:hover {
  transform: translateY(-5px);
}

.usecase-card .icon {
  font-size: 34px;
  margin-bottom: 12px;
}

.usecase-card h4 {
  font-size: 17px;
  color: #0057b8;
  margin-bottom: 10px;
  font-weight: 600;
}

.usecase-card p {
  font-size: 14.5px;
  color: #444;
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.automation-cta {
  background: #0057b8;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  border-radius: 10px;
  margin: 60px 0 40px;
}

.automation-cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.automation-cta p {
  font-size: 15px;
  margin-bottom: 18px;
  color: #e0ecf7;
}

.btn-cta {
  background: #ffffff;
  color: #0057b8;
  font-size: 14.5px;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-cta:hover {
  background: #003d80;
  color: #ffffff;
}

/* ===== Highlight Section ===== */
.automation-highlight {
  padding: 60px 20px;
  background-color: #f0fbff;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.highlight-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  text-align: center;
  border-top: 5px solid #00b894;
}

.highlight-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0057b8;
}

.highlight-card p {
  font-size: 14.5px;
  color: #444;
  line-height: 1.6;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 22px;
  }

  .usecase-card h4 {
    font-size: 16px;
  }

  .usecase-card p {
    font-size: 14px;
  }

  .automation-cta h2 {
    font-size: 20px;
  }

  .btn-cta {
    font-size: 14px;
    padding: 9px 20px;
  }

  .highlight-card {
    padding: 18px 14px;
  }

  .highlight-card h3 {
    font-size: 16.5px;
  }

  .highlight-card p {
    font-size: 13.8px;
  }
}

/* === Force Compact Spacing for All Sections === */
section,
.automation-tools-multicolor,
.tools-description-section,
.automation-highlight,
.automation-cta {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

section > .container,
.automation-tools-multicolor > .container,
.tools-description-section > .container,
.automation-highlight > .container,
.automation-cta > .container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Optional: Even more compact on small screens */
@media (max-width: 768px) {
  section,
  .automation-tools-multicolor,
  .tools-description-section,
  .automation-highlight,
  .automation-cta {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
}
/* === Final Section Spacing Fix (Mobile + Desktop Friendly) === */
section,
.automation-tools-multicolor,
.tools-description-section,
.automation-highlight,
.automation-cta {
  padding-top: 36px;
  padding-bottom: 36px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Optional: reduce inner padding in containers */
section .container,
.automation-tools-multicolor .container,
.tools-description-section .container,
.automation-highlight .container,
.automation-cta .container {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Adjust text spacing inside paragraphs */
.description-wrapper p,
.tools-description p,
.section-subtext,
.tool-card p,
.highlight-card p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  section,
  .automation-tools-multicolor,
  .tools-description-section,
  .automation-highlight,
  .automation-cta {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .description-wrapper {
    padding: 16px;
  }

  .tool-card {
    padding: 16px;
  }

  .highlight-card {
    padding: 18px 14px;
  }
}
