:root {
  --bs-body-font-family: "Inter", sans-serif;
}

body {
  font-family: "Inter", sans-serif !important;
}

/* Alias the old names to the new full Inter font for consistency */
.inter,
.inter-bold {
  font-family: "Inter", sans-serif !important;
  font-weight: 700;
}

.inter-regular,
.inter-mobile {
  font-family: "Inter", sans-serif !important;
  font-weight: 400;
}

.main-container {
  margin-top: 80px;
  background-color: #f8f9fa;
}

/* Banner Section */
.cctv-banner {
  background: linear-gradient(147.46deg, #df6500 -1.26%, #000000 66.84%);
  height: 370px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  max-height: 250px;
}

.banner-vector {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.banner-vector-3 {
  height: 100%;
  width: auto;
  left: 51.6%;
  top: 0;
  opacity: 0.5;
}

.banner-vector-4 {
  height: 100%;
  width: auto;
  left: calc(51.6% + 64px);
  top: 0;
}

.banner-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1098px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  height: 100%;
}

.banner-content-text {
  flex: 1;
  max-width: 570px;
  color: #ffffff;
}

.title-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.on-demand-label {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 10px;
  width: 184px;
  height: 33px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  line-height: 130%;
  color: #ffffff;
}

.banner-content-text h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 130%;
  margin: 0;
  text-transform: uppercase;
  color: #ffffff;
}

.banner-content-text p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  margin: 0;
  color: #ffffff;
}

.banner-image-cctv {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.banner-image-cctv img {
  width: 374px;
  height: auto;
  object-fit: contain;
}

/* Section Content */
.cctv-section {
  padding: 60px 0;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  gap: 0 28px;
  margin-top: 40px;
}

.package-card {
  background: #ffffff;
  border-radius: 20px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  overflow: visible;
  position: relative;
  margin-bottom: 28px;
}

.card-header-package {
  padding: 28px;
  color: #ffffff;
  min-height: 177px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-radius: 20px 20px 0 0;
}

.card-header-package.header-basic {
  background: linear-gradient(113.55deg, #ffb340 17.91%, #030000 75.95%);
}

.card-header-package.header-advance {
  background: linear-gradient(113.55deg, #df6500 17.91%, #030000 75.95%);
}

.card-header-package.header-pro {
  background: linear-gradient(280.36deg, #df3f01 17.07%, #030000 73.4%);
}

.card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sector-tag {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  color: #ffffff;
}

.price-info {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  width: fit-content;
}

.currency-price {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.3;
}

.period {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  position: absolute;
  left: 100%;
  white-space: nowrap;
  margin-left: 4px;
  bottom: 8px;
}

.package-name {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  text-transform: uppercase;
}

.card-body {
  padding: 30px 28px;
}

.feature-desc {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  color: #030303;
  margin-bottom: 20px;
}

.card-footer {
  padding: 0 28px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.btn-subscribe {
  background: #e63822;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-subscribe:hover {
  background: #c52d1b;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
  }

  .banner-content-text {
    max-width: 420px;
  }

  .banner-container {
    max-width: 768px;
  }

  .currency-price {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .main-container {
    margin-top: 0;
  }

  .cctv-section {
    padding: 32px 0;
  }

  .cctv-banner {
    min-height: 320px;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 64px;
    background: linear-gradient(147.46deg, #df6500 -1.26%, #000000 66.84%);
  }

  .banner-vector-3 {
    left: auto;
    width: 120%;
    height: 120%;
  }

  .banner-vector-4 {
    left: -15%;
    height: 120%;
    width: 120%;
    top: -5%;
  }

  .banner-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    max-width: 100%;
  }

  .banner-content-text {
    max-width: 295px;
    z-index: 10;
    max-height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
  }

  .title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
  }

  .on-demand-label {
    width: 121px;
    height: 22px;
    font-size: 12px;
    border-radius: 6.6px;
    padding: 0;
    margin-bottom: 0;
  }

  .banner-content-text h1 {
    font-size: 25px;
    line-height: 130%;
    margin: 0;
  }

  .banner-content-text p {
    font-size: 10px;
    line-height: 130%;
  }

  .banner-image-cctv {
    position: absolute;
    right: auto;
    bottom: 0;
    height: auto;
  }

  .banner-image-cctv img {
    width: 242px;
    height: auto;
    object-fit: contain;
  }

  /* Grid Mobile */
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 0 8px;
    margin-top: 20px;
  }

  .package-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    border-radius: 8.4px;
    box-shadow: none;
    margin-bottom: 16px;
  }

  .card-header-package {
    padding: 11.7px;
    height: auto;
    min-height: 77px;
    gap: 6.7px;
    border-radius: 8.4px 8.4px 0 0;
  }

  .sector-tag {
    font-size: 6px;
    padding: 2.1px 4.2px;
    border-radius: 4.2px;
  }

  .price-info {
    gap: 0;
  }

  .currency-price {
    font-size: 17.5px;
  }

  .period {
    font-size: 5px;
    margin-left: 2px;
    bottom: 3px;
  }

  .package-name {
    font-size: 8px;
  }

  .card-body {
    padding: 16px 7px;
  }

  .feature-desc {
    font-size: 8px;
    margin-bottom: 10px;
  }

  .card-footer {
    padding: 0 7px 7px 7px;
    gap: 16px;
  }

  .btn-subscribe {
    height: 30px;
    font-size: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
