/* Bootstrap-like utilities used by legacy EmpireCMS service templates. */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.g-3,
.g-4 {
  gap: 20px 0;
}

.col-12,
.col-md-5,
.col-md-6,
.col-md-7,
.col-lg-3,
.col-lg-4,
.col-lg-6,
.col-lg-8,
.col-lg-9,
.col-lg-10 {
  flex: 0 0 100%;
  max-width: 100%;
}

.py-3 { padding-top: 16px; padding-bottom: 16px; }
.py-4 { padding-top: 28px; padding-bottom: 28px; }
.py-5 { padding-top: 72px; padding-bottom: 72px; }
.p-3 { padding: 18px; }
.p-4 { padding: 26px; }
.p-5 { padding: 44px; }
.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }
.pb-4 { padding-bottom: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 22px; }
.mb-5 { margin-bottom: 40px; }
.mt-4 { margin-top: 24px; }
.my-4 { margin-top: 24px; margin-bottom: 24px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 14px; }
.me-4 { margin-right: 22px; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.ms-3 { margin-left: 14px; }
.mt-5 { margin-top: 40px; }
.ps-lg-4 { padding-left: 0; }

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-dark { color: var(--ink); }
.text-muted { color: var(--muted); }
.text-primary { color: var(--brand); }
.text-success { color: #1f8a5b; }
.text-info { color: #227c9d; }
.text-warning { color: #bf7a00; }
.small { font-size: 13px; }
.lead { font-size: 18px; line-height: 1.8; }
.fs-1 { font-size: 42px; line-height: 1; }
.display-4 { font-size: clamp(42px, 5vw, 66px); line-height: 1.08; }
.h2 { font-size: 30px; line-height: 1.28; }
.h3 { font-size: 30px; }
.h5 { font-size: 20px; }
.h6 { font-size: 17px; }
.fw-bold { font-weight: 800; }
.text-decoration-none { text-decoration: none; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.rounded { border-radius: 22px; }
.overflow-hidden { overflow: hidden; }
.border { border: 1px solid rgba(255, 255, 255, .74); }
.border-secondary { border-color: rgba(255, 255, 255, .22); }
.border-top { border-top: 1px solid var(--line); }
.border-bottom { border-bottom: 1px solid var(--line); }
.border-0 { border: 0; }
.shadow-sm { box-shadow: 0 18px 46px rgba(31, 55, 91, .08); }
.shadow { box-shadow: var(--shadow); }
.bg-white { background: rgba(255, 255, 255, .72); }
.bg-light { background: rgba(238, 244, 251, .72); }
.bg-primary { background: var(--brand); color: #fff; }
.bg-danger { background: #b4234a; color: #fff; }
.bg-gradient {
  background:
    linear-gradient(118deg, rgba(37, 37, 38, .94), rgba(146, 18, 65, .9)),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .18), transparent 34%);
}

.page-header.bg-gradient {
  min-height: 300px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(18, 18, 20, .88), rgba(37, 37, 38, .62) 48%, rgba(146, 18, 65, .22)),
    url("/images/inner-page-banner.png") center / cover no-repeat;
}

.d-flex { display: flex; }
.d-block { display: block; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow-1 { flex-grow: 1; min-width: 0; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.gap-3 { gap: 14px; }
.opacity-75 { opacity: .75; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.top-0 { top: 0; }
.end-0 { right: 0; }
.m-3 { margin: 14px; }

.alert {
  padding: 16px 18px;
  border-radius: 8px;
}

.alert-info {
  color: #18576d;
  background: rgba(34, 124, 157, .1);
}

.page-header {
  position: relative;
  overflow: hidden;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

/* Unified inner-page banner, aligned with the service landing page. */
.page-header.bg-gradient.py-5 {
  min-height: 309px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background:
    linear-gradient(90deg, rgba(18, 18, 20, .9), rgba(37, 37, 38, .7) 50%, rgba(146, 18, 65, .3)),
    url("/images/inner-page-banner.png") center / cover no-repeat !important;
}

.page-header.bg-gradient > .container.py-5 {
  width: min(100% - 44px, 880px);
  max-width: 880px;
  padding-top: 48px !important;
  padding-bottom: 42px !important;
}

.page-header.bg-gradient h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.08;
  font-weight: 850;
}

.page-header.bg-gradient h1::before {
  content: "ENSEA DIGITAL";
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.page-header.bg-gradient .lead {
  max-width: 800px;
  margin: 16px auto 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.75;
}

.page-header.bg-gradient .breadcrumb {
  margin: 0;
}

.page-header.bg-gradient h1 + nav .breadcrumb {
  margin-top: 18px;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.breadcrumb a {
  color: inherit;
  font-weight: 700;
}

.service-nav,
.sub-category-nav {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 18px 46px rgba(31, 55, 91, .08);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid rgba(146, 18, 65, .22);
  background: rgba(255, 255, 255, .68);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover,
.btn.active {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 18px 36px rgba(146, 18, 65, .24);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-light {
  color: var(--brand);
  background: #fff;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.btn-outline-primary,
.btn-outline-light {
  background: rgba(255, 255, 255, .66);
}

.btn-outline-danger { color: #a12645; border-color: rgba(161, 38, 69, .28); }
.btn-outline-success { color: #1f7a50; border-color: rgba(31, 122, 80, .28); }
.btn-outline-info { color: #226f8b; border-color: rgba(34, 111, 139, .28); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.service-card,
.category-card,
.content-card,
.featured-card,
.feature-box,
.case-card,
.category-intro {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.service-card,
.category-card,
.content-card,
.featured-card,
.feature-box {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.hover-lift:hover,
.service-card:hover,
.category-card:hover,
.content-card:hover,
.featured-card:hover {
  transform: translateY(-7px);
  border-color: rgba(146, 18, 65, .24);
  box-shadow: 0 26px 64px rgba(146, 18, 65, .12);
}

.service-icon,
.intro-icon,
.feature-icon,
.icon-box {
  color: var(--brand);
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
  font-weight: 850;
}

.section-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.category-image img,
.content-image img,
.case-image img {
  display: block;
  object-fit: cover;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(37, 37, 38, .16);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, .66);
}

textarea.form-control {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.cta-section {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .p-md-5 { padding: 44px; }
  .mb-md-0 { margin-bottom: 0; }
  .text-md-end { text-align: right; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .ps-lg-4 { padding-left: 28px; }
  .mb-lg-0 { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .page-header.bg-gradient > .container.py-5 {
    width: min(100% - 28px, 880px);
    padding-top: 38px !important;
    padding-bottom: 34px !important;
  }

  .page-header.bg-gradient .lead {
    font-size: 14px;
    line-height: 1.65;
  }

  .py-5 {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .p-5 {
    padding: 28px 20px;
  }

  .service-nav,
  .sub-category-nav {
    justify-content: flex-start;
  }
}
