/* ================================================================
   FILE PATH: public/css/Investment.css
   Brescon Family Office — Investment Cases Section
================================================================ */

#investment-cases {
  padding: var(--section-pad);
  background: var(--surface-alt);
}

.investment-cases-container {
  position: relative;
}

.investment-list {
  margin-top: 1.5rem;
}

.investment-item {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 4.5rem;
}

.investment-item:last-child {
  margin-bottom: 0;
}

.investment-img {
  width: 235px;
  min-width: 235px;
  flex-shrink: 0;
}

.investment-img img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}

.investment-content {
  flex: 1;
  padding-top: 2px;
}

.investment-content h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1e2b36;
  margin: 0 0 0.9rem;
  display: inline-block;
  border-bottom: 2px solid #5BA3C9;
  padding-bottom: 4px;
}

.investment-text-wrap {
  max-width: 980px;
}

.short-desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #2f3740;
}

.read-more-btn {
  display: inline;
  margin-left: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #4a9fd5;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.read-more-btn:hover,
.read-more-btn:focus {
  color: #1A5276;
  text-decoration: underline;
  outline: none;
}

/* FULL SCREEN DETAIL POPUP - EXACT SCREENSHOT STYLE */

.investment-detail-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f3f3f3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.investment-detail-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.investment-detail-popup-inner {
  width: 100%;
  min-height: 100vh;
  background: #f3f3f3;
}

.investment-detail-popup-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.investment-detail-popup-close:hover {
  background: #0a3d62;
  color: #fff;
}

.investment-detail-hero {
  position: relative;
  width: 100%;
  height: 760px;
  overflow: hidden;
  background: #ddd;
}

.investment-detail-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.investment-detail-badge {
  position: absolute;
  left: 105px;
  bottom: 0;
  background: #083b63;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 18px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.investment-detail-badge::before {
  content: '';
  width: 8px;
  height: 14px;
  background: #59a9dc;
  display: inline-block;
  transform: skew(-18deg);
}

.investment-detail-content-wrap {
  width: 100%;
  background: #f3f3f3;
}

.investment-detail-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 28px 70px;
}

#detailTitle {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  margin: 0 0 22px;
  font-family: var(--font-body);
}

#detailContent h2 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
  margin: 0 0 18px;
  font-family: var(--font-body);
}

#detailContent p {
  font-size: 15px;
  line-height: 1.45;
  color: #222;
  margin: 0 0 18px;
  font-family: var(--font-body);
}

#detailContent em {
  font-style: italic;
  color: #444;
}

.detail-separator {
  border-top: 1px solid #d2d2d2;
  margin: 20px 0;
}

/* TABLET */
@media (max-width: 991px) {
  .investment-detail-hero {
    height: 520px;
  }

  .investment-detail-badge {
    left: 40px;
  }

  .investment-detail-content {
    max-width: 760px;
    padding: 24px 24px 60px;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .investment-detail-popup-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .investment-detail-hero {
    height: 760px;
  }

  .investment-detail-hero img {
    object-fit: cover;
    object-position: center;
  }

  .investment-detail-badge {
    left: 18px;
    bottom: 0;
    font-size: 10px;
    padding: 7px 14px;
  }

  .investment-detail-content {
    padding: 22px 18px 46px;
  }

  #detailTitle {
    font-size: 27px;
    margin-bottom: 18px;
  }

  #detailContent h2 {
    font-size: 20px;
    margin-bottom: 14px;
  }

  #detailContent p {
    font-size: 13px;
    line-height: 1.42;
    margin-bottom: 16px;
  }
}