/* ==========================================================
   Corporate Investment page — modern card layout
   ========================================================== */
.ci-page {
  --ci-purple: #5a1fd3;
  --ci-purple-2: #7b19cb;
  --ci-ink: #1f1640;
  --ci-muted: #6b6785;
  --ci-line: #ece9f6;
  --ci-soft: #f6f4fd;
  --ci-orange-1: #fc9715;
  --ci-orange-2: #e45b2d;
  --ci-green: #16a36a;
  background: linear-gradient(180deg, #f7f5ff 0%, #ffffff 60%);
}

/* ---------- panels ---------- */
.ci-panel {
  background: #fff;
  border: 1px solid var(--ci-line);
  border-radius: 24px;
  padding: 44px 36px 40px;
  margin-top: 36px;
  box-shadow: 0 18px 50px rgba(60, 30, 140, 0.07);
}
/* first panel sits over the purple banner (.main-area gives -70px) */
.ci-panel.ci-panel--lead {
  position: relative;
  margin-top: -70px;
  box-shadow: 0 24px 60px rgba(60, 30, 140, 0.14);
}

/* ---------- section header ---------- */
.ci-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 34px;
}
.ci-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ci-purple);
  background: rgba(90, 31, 211, 0.08);
}
.ci-eyebrow--green {
  color: var(--ci-green);
  background: rgba(22, 163, 106, 0.1);
}
.ci-eyebrow--orange {
  color: var(--ci-orange-2);
  background: rgba(228, 91, 45, 0.1);
}
.ci-head__title {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ci-ink);
  text-transform: none;
}
.ci-head__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ci-muted);
}

/* ---------- grid ---------- */
.ci-grid {
  justify-content: center;
  row-gap: 28px;
}
.ci-col {
  display: flex;
}

/* ---------- investment card ---------- */
.ci-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--ci-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ci-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 50px rgba(60, 30, 140, 0.16);
}
.ci-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ci-soft);
}
.ci-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ci-card:hover .ci-card__media img {
  transform: scale(1.06);
}
.ci-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 8, 60, 0.35) 0%, rgba(20, 8, 60, 0) 35%, rgba(20, 8, 60, 0) 65%, rgba(20, 8, 60, 0.45) 100%);
  pointer-events: none;
}

/* chips on the image */
.ci-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 28px);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-chip--category {
  top: 14px;
  left: 14px;
  color: var(--ci-purple);
  background: rgba(255, 255, 255, 0.95);
}
.ci-chip--location {
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 10px 4px 8px;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  background: rgba(20, 8, 60, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ci-chip--location i {
  font-size: 11px;
  color: #ffeb3b;
}
/* theme span styles were making the text large and grey */
.ci-chip--location .ci-chip__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: #fff !important;
}
.ci-chip--location:has(.ci-chip__text:empty) {
  display: none;
}
.ci-chip--days,
.ci-chip--settled {
  top: 14px;
  right: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--ci-orange-1), var(--ci-orange-2));
}
.ci-chip--settled {
  background: var(--ci-green);
}

/* body */
.ci-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.ci-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
}
.ci-card__title a {
  color: var(--ci-ink);
  transition: color 0.2s;
}
.ci-card__title a:hover {
  color: var(--ci-purple);
}
.ci-card__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ci-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* price */
.ci-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.ci-price__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--ci-purple-2), var(--ci-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ci-price__unit {
  font-size: 13px;
  color: var(--ci-muted);
}

/* progress */
.ci-progress {
  margin-bottom: 18px;
}
.ci-progress__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ci-muted);
}
.ci-progress__head strong {
  color: var(--ci-ink);
}
.ci-progress__head span:last-child {
  font-weight: 700;
  color: var(--ci-purple);
}
.ci-progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--ci-soft);
  overflow: hidden;
}
.ci-progress__bar {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ci-orange-1), var(--ci-orange-2));
}
.ci-progress__goal {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ci-muted);
}

/* stats */
.ci-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.ci-stat {
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--ci-soft);
  text-align: center;
}
.ci-stat i {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--ci-purple);
}
.ci-stat strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ci-ink);
  word-break: break-word;
}
.ci-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ci-muted);
}

/* buttons */
.ci-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s, color 0.25s;
}
.ci-btn i {
  transition: transform 0.25s ease;
}
.ci-btn:hover i {
  transform: translateX(4px);
}
.ci-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ci-purple-2), var(--ci-purple));
  box-shadow: 0 10px 22px rgba(90, 31, 211, 0.3);
}
.ci-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(90, 31, 211, 0.4);
}
.ci-btn--outline {
  color: var(--ci-purple);
  border: 1.5px solid rgba(90, 31, 211, 0.3);
  background: #fff;
}
.ci-btn--outline:hover {
  color: #fff;
  border-color: var(--ci-purple);
  background: var(--ci-purple);
}
.ci-btn--inline {
  width: auto;
  margin-top: 8px;
}
.ci-btn--inline:hover i {
  transform: translateY(3px);
}

/* ---------- empty state ---------- */
.ci-empty {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 24px;
  text-align: center;
  border: 2px dashed var(--ci-line);
  border-radius: 20px;
  background: var(--ci-soft);
}
.ci-empty__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--ci-purple-2), var(--ci-purple));
  box-shadow: 0 12px 26px rgba(90, 31, 211, 0.3);
}
.ci-empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ci-ink);
  text-transform: none;
}
.ci-empty p {
  margin: 0 0 16px;
  color: var(--ci-muted);
}
.ci-empty--small {
  padding: 22px;
}
.ci-empty--small p {
  margin: 0;
}

/* ---------- promo banner ---------- */
.ci-banner {
  margin-top: 36px;
  border-radius: 24px;
  overflow: hidden;
  background: #5a1fd3;
  box-shadow: 0 18px 50px rgba(60, 30, 140, 0.18);
}
.ci-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- upcoming products ---------- */
.ci-up {
  width: 100%;
  border: 1px solid var(--ci-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ci-up:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(60, 30, 140, 0.14);
}
.ci-up__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ci-up__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ci-up__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, var(--ci-purple-2), #4d22d7);
}
.ci-chip--soon {
  top: 12px;
  left: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--ci-orange-1), var(--ci-orange-2));
}
.ci-up__body {
  padding: 16px 18px 18px;
}
.ci-up__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ci-ink);
  text-transform: none;
}

/* ---------- pagination ---------- */
.ci-pagination {
  margin-top: 30px;
}
.ci-pagination:empty {
  display: none;
}
.ci-pagination .pagination {
  justify-content: center;
  gap: 6px;
}
.ci-pagination .page-link {
  border: none;
  border-radius: 10px !important;
  min-width: 40px;
  text-align: center;
  color: var(--ci-purple);
  background: var(--ci-soft);
}
.ci-pagination .page-item.active .page-link {
  color: #fff;
  background: var(--ci-purple);
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .ci-panel.ci-panel--lead {
    margin-top: -70px;
  }
}
@media (max-width: 767px) {
  .ci-panel,
  .ci-panel.ci-panel--lead {
    padding: 30px 18px;
    border-radius: 18px;
  }
  .ci-head__title {
    font-size: 26px;
  }
  .ci-banner {
    border-radius: 16px;
  }
}

/* reset.css forces h3>a to 28px + inline-block, which breaks sizing */
.ci-card__title a {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}
.ci-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
