/* ============================================================
   INDUSTRY PAGE — page-level
============================================================ */
.ind-page {
  padding-top: 120px;
  padding-bottom: 100px;
  background: #f3f3f3;
}
.ind-page__head {
  margin-bottom: 56px;
}
.ind-page__head .section-label {
  margin-bottom: 12px;
}

/* ============================================================
   INDUSTRY CARDS GRID
============================================================ */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Last row: 2 cards centered */
.ind-grid .ind-card:nth-child(4) { grid-column: 1; }
.ind-grid .ind-card:nth-child(5) { grid-column: 2; }

.ind-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  overflow: hidden;
}
.ind-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.ind-card--dark {
  background: #1c3850;
}
.ind-card--dark .ind-card__title { color: #fff; }
.ind-card--dark .ind-card__desc { color: rgba(255,255,255,0.6); }
.ind-card--dark .ind-card__btn {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.ind-card--dark .ind-card__btn:hover { background: #fff; color: #1c3850; }
.ind-card--dark .ind-card__tag-box { background: rgba(255,255,255,0.15); color: #fff; }

.ind-card__tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.ind-card__tag-box {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #eef1f5;
  color: #1c3850;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ind-card__tag-box svg { width: 20px; height: 20px; }
.ind-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa5b5;
}
.ind-card--dark .ind-card__label { color: rgba(255,255,255,0.45); }

.ind-card__title {
  font-family: 'Georgia', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #1c3850;
  line-height: 1.25;
  flex: 1;
}
.ind-card__desc {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ind-card__btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(28,56,80,0.08);
  color: #1c3850;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-end;
  margin-top: auto;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.ind-card__btn:hover {
  background: #1c3850;
  color: #fff;
  transform: scale(1.1);
}

/* ============================================================
   INDUSTRY POPUP — OVERLAY
============================================================ */
.popup-overlay--industry {
  background: rgba(11, 23, 51, 0.65);
  padding: 16px;
  align-items: center;
}

/* ============================================================
   INDUSTRY POPUP — SHELL
============================================================ */
.ind-popup {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 1280px;
  max-height: calc(100vh - 32px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.3s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}
.popup-overlay.is-open .ind-popup { transform: scale(1); }

/* ============================================================
   INDUSTRY POPUP — HERO (top section)
============================================================ */
.ind-popup__hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  background: #0b1733;
  overflow: hidden;
  flex-shrink: 0;
}

/* Background grid lines decoration */
.ind-popup__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.ind-popup__hero-left {
  position: relative;
  z-index: 3;
  padding: 48px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.ind-popup__hero-right {
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.ind-popup__hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Fade the image into the left content area */
.ind-popup__hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0b1733 0%, transparent 28%);
  z-index: 2;
  pointer-events: none;
}

.ind-popup__tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ind-popup__tag-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ind-popup__tag-icon svg { width: 18px; height: 18px; }
.ind-popup__tag-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.ind-popup__title {
  font-family: 'Georgia', serif;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 14px;
}
.ind-popup__line {
  display: block;
  width: 48px; height: 3px;
  background: #b5965a;
  border-radius: 2px;
  margin-bottom: 18px;
}
.ind-popup__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  max-width: 380px;
}
.ind-popup__cta {
  padding: 13px 20px 13px 26px;
  justify-content: space-between;
  min-width: 220px;
  border-radius: 40px;
  align-self: flex-start;
}
.ind-popup__cta-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #1c3850;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   INDUSTRY POPUP — BOTTOM SECTION
============================================================ */
.ind-popup__bottom {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  background: #fff;
}

/* ============================================================
   SERVICE GRID (left column of bottom)
============================================================ */
.ind-popup__services {
  padding: 32px 36px 36px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
  align-content: start;
}

/* 5-service layout variant */
.ind-popup__services--5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 24px;
}

.ind-svc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ind-svc__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ind-svc__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #eef1f5;
  color: #1c3850;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ind-svc__icon svg { width: 18px; height: 18px; }
.ind-svc__num {
  font-size: 13px;
  font-weight: 700;
  color: #c5cdd8;
  letter-spacing: 0.05em;
}
.ind-svc__title {
  font-size: 14px;
  font-weight: 700;
  color: #1c3850;
  line-height: 1.3;
  margin-bottom: 4px;
}
.ind-svc__text {
  font-size: 12px;
  color: #7a8799;
  line-height: 1.55;
}

/* ============================================================
   ADVANTAGES PANEL (right column of bottom)
============================================================ */
.ind-popup__advantages {
  border-left: 1px solid #e8ecf0;
  padding: 32px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fafbfc;
}

.ind-adv__title {
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1c3850;
  line-height: 1.35;
  margin-bottom: 4px;
}
.ind-adv__line {
  display: block;
  width: 36px; height: 3px;
  background: #b5965a;
  border-radius: 2px;
  margin-bottom: 6px;
}

.ind-adv__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.ind-adv__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #4a5568;
  line-height: 1.5;
}
.ind-adv__item-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: #9aa5b5;
  margin-top: 1px;
}
.ind-adv__item-icon svg { width: 18px; height: 18px; }

.ind-adv__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e8ecf0;
  font-size: 13px;
  font-weight: 600;
  color: #1c3850;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  text-decoration: none;
}
.ind-adv__cta:hover { color: #000; }
.ind-adv__cta-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #1c3850;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ind-adv__cta:hover .ind-adv__cta-icon { background: #000; }

/* ============================================================
   CLOSE BUTTON
============================================================ */
.ind-popup .popup-close {
  top: 16px; right: 16px; z-index: 20;
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.ind-popup .popup-close:hover { background: rgba(255,255,255,0.35); }

/* ============================================================
   INDUSTRY PAGE — HERO
============================================================ */
.ind-page-hero {
  /* background: #1c3850; */
  /* padding: 0 0px 24px; */
  margin-bottom: 0;
}
.ind-page-hero__inner {
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  position: relative;
  padding: 100px 60px 80px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #0b1733 0%, #1c3850 60%, #2a4f6e 100%);
}
.ind-page-hero__bg {
  position: absolute;
  inset: 0;
}
.ind-page-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.ind-page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,23,51,0.9) 0%, rgba(11,23,51,0.5) 60%, transparent 100%);
}
.ind-page-hero__content {
  position: relative; z-index: 2;
}
.ind-page-hero__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 16px;
}
.ind-page-hero__title {
  font-family: 'Georgia', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.ind-page-hero__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.65;
}

/* ============================================================
   INDUSTRY CARDS SECTION
============================================================ */
.ind-cards-section {
  padding: 56px 0 100px;
  background: #f3f3f3;
}

/* ============================================================
   RESPONSIVE — 1024px
============================================================ */
@media (max-width: 1024px) {
  .ind-popup__services {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 28px 28px 28px;
  }
  .ind-popup__services--5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .ind-popup__bottom {
    grid-template-columns: 1fr;
  }
  .ind-popup__advantages {
    border-left: none;
    border-top: 1px solid #e8ecf0;
    background: #fff;
  }
}

@media (max-width: 860px) {
  .ind-popup__hero {
    grid-template-columns: 1fr;
  }
  .ind-popup__hero-right {
    display: none;
  }
  .ind-popup__hero-left {
    padding: 52px 28px 36px;
  }
  .ind-popup__title { font-size: clamp(26px, 6vw, 40px); }
  .ind-popup__cta { min-width: 0; width: 100%; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid .ind-card:nth-child(4),
  .ind-grid .ind-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 640px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-grid .ind-card:nth-child(4),
  .ind-grid .ind-card:nth-child(5) { grid-column: auto; }
  .ind-popup__services { grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }
  .ind-popup__services--5 { grid-template-columns: 1fr 1fr; }
  .ind-page-hero__inner { padding: 80px 24px 48px; }
  .ind-popup__hero-left { padding: 44px 20px 28px; }
}
