/* =========================================================
   INDUSTRIES PAGE
   ========================================================= */

.industries-hero {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: #000a16;
}

.industries-hero-image {
  position: absolute;
  inset: 0;
  background: url('../img/industry_hero.jpg') center center / cover no-repeat;
}

.industries-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 10, 22, .78),
    rgba(0, 10, 22, .42) 55%,
    rgba(0, 10, 22, .18)
  );
}

.industries-hero-content {
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.industries-hero .section-kicker {
  color: #68b2ff;
  margin-bottom: 10px;
}

.industries-hero h1 {
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.industries-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbe7f5;
  font-size: 13px;
}

.industries-breadcrumb strong {
  color: #fff;
}


/* ---------------------------------------------------------
   Main
   --------------------------------------------------------- */

.industries-section {
  padding: 0 0 65px;
  background: #fff;
}


/* ---------------------------------------------------------
   Tabs
   --------------------------------------------------------- */

.industry-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 45px;
  border: 1px solid #dfe4eb;
  border-top: 0;
}

.industry-tab {
  min-height: 58px;
  border: 0;
  border-right: 1px solid #dfe4eb;
  background: #fff;
  color: #071f4f;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s ease, color .2s ease;
}

.industry-tab:last-child {
  border-right: 0;
}

.industry-tab i {
  color: #2874d2;
}

.industry-tab.active {
  background: #2874d2;
  color: #fff;
}

.industry-tab.active i {
  color: #fff;
}

.industry-tab:hover:not(.active) {
  background: #f4f8fd;
}


/* ---------------------------------------------------------
   Panels
   --------------------------------------------------------- */

.industry-panel {
  display: none;
}

.industry-panel.active {
  display: block;
  animation: industryFade .25s ease;
}

@keyframes industryFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------------------------------------------------------
   Industry introduction
   Image and text are equal-height columns.
   The image fills the complete height of the text column.
   --------------------------------------------------------- */

.industry-top {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  margin-bottom: 34px;
  border-bottom: 1px solid #e5e9ee;
  padding-bottom: 34px;
}

.industry-top-image {
  height: 520px;
  min-height: 0;
  overflow: hidden;
}

.industry-top-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.industry-top-copy {
  padding: 5px 0 0 38px;
}

.industry-top-copy h2 {
  margin: 0 0 18px;
  color: #02245B;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.industry-top-copy p,
.industry-intro p {
  margin: 0 0 17px;
  color: #687586;
  font-size: 14px;
  line-height: 1.75;
  text-align: justify;
}

.industry-top-copy p:last-child {
  margin-bottom: 0;
}

.industry-intro {
  margin-bottom: 38px;
}

.industry-intro p:last-child {
  margin-bottom: 0;
}



/* ---------------------------------------------------------
   Industry Subsection Cards
   Compact homepage-inspired design
   --------------------------------------------------------- */

.industry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.industry-card {
  background: #fff;
  border: 1px solid #e2e8f1;
  height: 120px;
  min-height: 0px;
  padding: 14px 13px 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(20, 45, 80, .03);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
user-select: none;
  -webkit-user-select: none;
}

.industry-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2b83ed;
}

.industry-card:nth-child(3n+2)::before {
  background: #4b9df5;
}

.industry-card:nth-child(3n)::before {
  background: #76b5f7;
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: #b9d5f5;
  box-shadow: 0 10px 24px rgba(20, 70, 130, .10);
}

.industry-card-top {
  display: grid;
  grid-template-columns: 25px 1fr 12px;
  gap: 8px;
  align-items: start;
}

.industry-card .card-icon {
  color: #2b83ed;
  font-size: 16px;
  line-height: 1;
  padding-top: 2px;
}

.industry-card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
  color: #122946;
  font-weight: 700;
}

.industry-card b {
  align-self: start;
  color: #2682ec;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  padding-top: 1px;
}

.industry-card p {
  margin: 7px 12px 0 33px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #7a8491;
  align-self: start;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.industries-cta {
  background: #02245B;
  padding: 42px 0;
}

.industries-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.industries-cta .section-kicker {
  margin: 0 0 8px;
  color: #68b2ff;
  font-size: 11px;
}

.industries-cta h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
}

.industries-cta p:not(.section-kicker) {
  margin: 0;
  color: #cbd8e8;
  font-size: 13px;
}

.industries-cta .btn {
  flex: 0 0 auto;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 991px) {
  .industries-hero {
    height: 270px;
  }

  .industry-tabs {
    margin-bottom: 35px;
  }

  .industry-top {
    grid-template-columns: 42% 58%;
  }

  .industry-top-image {
    min-height: 0;
  }

  .industry-top-image img {
    height: 100%;
    min-height: 0;
  }

  .industry-top-copy {
    padding-left: 28px;
  }

  .industry-top-copy h2 {
    font-size: 27px;
  }

  .industry-top-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .industries-cta-inner {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .industry-cards { grid-template-columns: 1fr; }
  .industry-card { min-height: 104px; }
  .industries-hero {
    height: 250px;
  }

  .industries-hero h1 {
    font-size: 39px;
  }

  .industry-tabs {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .industry-tab {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid #dfe4eb;
  }

  .industry-tab:last-child {
    border-bottom: 0;
  }

  .industry-top {
    grid-template-columns: 1fr;
    margin-bottom: 25px;
    padding-bottom: 25px;
  }

  .industry-top-image {
    height: 210px;
  }

  .industry-top-image img {
    height: 210px;
    min-height: 0;
  }

  .industry-top-copy {
    padding: 20px 0 0;
  }

  .industry-top-copy h2 {
    font-size: 27px;
  }

  .industry-top-copy p,
  .industry-intro p {
    font-size: 13px;
    text-align: left;
  }

  .industry-single-column > h3,
  .industry-detail-column > h3 {
    font-size: 22px;
  }

  .industries-cta-inner {
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 575px) {
  .industries-hero {
    height: 230px;
  }

  .industries-hero h1 {
    font-size: 35px;
  }

  .industry-top-image {
    height: 190px;
  }

  .industry-top-image img {
    height: 190px;
  }

  .industry-accordion-trigger {
    min-height: 52px;
    font-size: 13px;
  }

  .industry-accordion-content {
    padding: 15px;
  }

  .industry-accordion-content p {
    font-size: 12.5px;
  }

  .industries-cta h2 {
    font-size: 24px;
  }
}
