/* ==========================================================================
   RightSpace Curated Investments Platform Styles
   ========================================================================== */

.invest_page {
  width: 100%;
  background-color: #f8fafc;
  padding: 140px 10% 100px 10%;
  box-sizing: border-box;
  min-height: 100vh;
}

.invest_container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

/* Dual Sub-Navigation Bar (Overview vs Investments) */
.invest_subnav_wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.invest_subnav_bar {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  gap: 6px;
}

.invest_subnav_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.25s ease;
}

.invest_subnav_item i {
  font-size: 0.95rem;
}

.invest_subnav_item:hover {
  color: #10222e;
  background: #f1f5f9;
}

.invest_subnav_item.active {
  background: #10222e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 34, 46, 0.15);
}

.invest_subnav_item.active i {
  color: #f59e0b;
}

/* Page Header */
.invest_header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.invest_subtitle {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #b73524;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
  display: inline-block;
}

.invest_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.18;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}

.invest_description {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* Filter Controls & Search */
.invest_controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  background-color: #ffffff;
  padding: 16px 24px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.invest_category_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invest_filter_pill {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.invest_filter_pill:hover {
  color: #10222e;
  background-color: #e2e8f0;
}

.invest_filter_pill.active {
  background-color: #10222e;
  color: #ffffff;
}

.invest_search_form {
  position: relative;
  min-width: 260px;
}

.invest_search_input {
  width: 100%;
  padding: 10px 42px 10px 18px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #10222e;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.invest_search_input:focus {
  background-color: #ffffff;
  border-color: #10222e;
  box-shadow: 0 0 0 3px rgba(16, 34, 46, 0.08);
}

.invest_search_btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Featured Hero Investment Card */
.featured_hero_invest_card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background-color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.featured_hero_invest_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.07);
}

.featured_invest_image_wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.featured_invest_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured_hero_invest_card:hover .featured_invest_image {
  transform: scale(1.04);
}

.featured_invest_badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #b73524;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.featured_invest_body {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured_invest_meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
}

.featured_invest_category {
  font-weight: 700;
  color: #10222e;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
}

.featured_invest_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.25;
  margin: 0 0 14px 0;
}

.featured_invest_title a {
  color: #10222e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured_invest_title a:hover {
  color: #b73524;
}

.featured_invest_metrics_strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.featured_invest_metric {
  display: flex;
  flex-direction: column;
}

.featured_invest_metric_lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #64748b;
}

.featured_invest_metric_val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #10222e;
  margin-top: 2px;
}

.featured_invest_excerpt {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 24px 0;
}

.read_featured_invest_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #10222e;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.read_featured_invest_btn:hover {
  background-color: #b73524;
  color: #ffffff;
  transform: translateX(4px);
}

/* Investment Cards Grid */
.invest_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.invest_card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.invest_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.invest_card_image_link {
  display: block;
  text-decoration: none;
}

.invest_card_image_wrapper {
  position: relative;
  width: 100%;
  padding-top: 58%;
  overflow: hidden;
  background-color: #e2e8f0;
}

.invest_card_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.invest_card:hover .invest_card_image {
  transform: scale(1.05);
}

.invest_card_badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(16, 34, 46, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invest_status_badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.invest_status_badge.status_open {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.invest_status_badge.status_coming {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.invest_status_badge.status_funded {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.invest_card_body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.invest_metrics_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.invest_metric_item {
  display: flex;
  flex-direction: column;
}

.invest_metric_label {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.invest_metric_val {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #10222e;
}

.roi_highlight {
  color: #16a34a !important;
}

.invest_metric_sep {
  width: 1px;
  height: 24px;
  background: #cbd5e1;
}

.invest_card_title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.invest_card_title a {
  color: #10222e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.invest_card_title a:hover {
  color: #b73524;
}

.invest_card_location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 10px;
}

.invest_card_excerpt {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.invest_card_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
}

.invest_card_date {
  color: #94a3b8;
  font-size: 0.78rem;
}

.invest_card_link {
  color: #b73524;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.invest_card_link:hover {
  gap: 8px;
  color: #10222e;
}

/* ==========================================================================
   Investment Details Page Styles
   ========================================================================== */

.invest_detail_page {
  width: 100%;
  background-color: #f8fafc;
  padding: 130px 10% 100px 10%;
  box-sizing: border-box;
}

.invest_detail_container {
  max-width: 1180px;
  margin: 0 auto;
}

.invest_breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.invest_breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.invest_breadcrumbs a:hover {
  color: #b73524;
}

.invest_breadcrumbs span {
  color: #cbd5e1;
}

.invest_detail_header {
  margin-bottom: 30px;
}

.invest_detail_badge_row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.invest_detail_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.invest_detail_loc_row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #64748b;
}

.invest_detail_hero_img_box {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.invest_detail_hero_img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Key Metrics Strip on Detail Page */
.invest_detail_metrics_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
}

.invest_detail_metric_box {
  display: flex;
  flex-direction: column;
}

.invest_detail_metric_box .lbl {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invest_detail_metric_box .val {
  font-family: "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #10222e;
  margin-top: 4px;
}

.invest_detail_body_layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.invest_detail_content_col {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px;
  border: 1px solid #e2e8f0;
  font-family: "Inter", sans-serif;
  color: #334155;
  line-height: 1.7;
}

.invest_detail_content_col .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #10222e;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.invest_detail_content_col h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: #10222e;
  margin: 28px 0 14px 0;
}

.invest_detail_content_col ul {
  padding-left: 20px;
  margin: 12px 0 24px 0;
}

.invest_detail_content_col li {
  margin-bottom: 8px;
}

/* Sidebar Investor Contact Card */
.invest_sidebar_card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 110px;
}

.invest_sidebar_title {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: #10222e;
  margin: 0 0 10px 0;
}

.invest_sidebar_sub {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.invest_sidebar_highlights {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.invest_sidebar_hl_item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}

.invest_sidebar_hl_item:last-child {
  margin-bottom: 0;
}

.invest_sidebar_hl_item i {
  color: #16a34a;
  font-size: 14px;
}

.btn_invest_whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #16a34a;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn_invest_whatsapp:hover {
  background: #15803d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

/* Modal for Publishing / Editing Investment Projects */
.modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 34, 46, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal_container {
  background-color: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal_header {
  padding: 20px 28px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal_title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #10222e;
  margin: 0;
}

.modal_close_btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal_close_btn:hover {
  color: #10222e;
}

.modal_body {
  padding: 28px;
}

.modal_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.modal_group {
  display: flex;
  flex-direction: column;
}

.modal_group.full_width {
  grid-column: 1 / -1;
}

.modal_label {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.req_star {
  color: #b73524;
}

.modal_input,
.modal_select,
.modal_textarea {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.modal_input:focus,
.modal_select:focus,
.modal_textarea:focus {
  border-color: #10222e;
}

.modal_submit_btn {
  width: 100%;
  background-color: #b73524;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 24px;
  transition: background-color 0.2s ease;
}

.modal_submit_btn:hover {
  background-color: #991b1b;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .invest_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured_hero_invest_card {
    grid-template-columns: 1fr;
  }
  .featured_invest_image_wrapper {
    min-height: 280px;
  }
  .invest_detail_body_layout {
    grid-template-columns: 1fr;
  }
  .invest_detail_metrics_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .invest_page,
  .invest_detail_page {
    padding: 120px 5% 80px 5%;
  }
  .invest_grid {
    grid-template-columns: 1fr;
  }
  .invest_detail_metrics_grid {
    grid-template-columns: 1fr;
  }
  .modal_grid {
    grid-template-columns: 1fr;
  }
  .invest_controls {
    flex-direction: column;
    align-items: stretch;
  }
  .invest_search_form {
    min-width: 100%;
  }
}
