/* Investment Portfolio Section - Redesigned */
.investment-section {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* Tab Navigation */
.investment-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
}

.investment-tab {
  position: relative;
  padding: 12px 24px;
  font-size: 20px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
}

.investment-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #7b603d;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.investment-tab:hover,
.investment-tab.active {
  color: #7b603d;
}

.investment-tab.active::after {
  transform: scaleX(1);
}

/* Tab Content */
.investment-content {
  display: none;
}

.investment-content.active {
  display: block;
}

/* Investment Grid */
.investment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  padding: 0 10px;
}

/* Investment Card */
.investment-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  padding: 5px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  aspect-ratio: 42 / 29;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  align-self: start;
}

.investment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.investment-card-logo {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.investment-card-logo img {
  max-height: 80%;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.investment-card-name {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
  flex: 0 0 auto;
}

/* Modal Overlay */
.investment-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.investment-modal-overlay.active {
  display: flex;
}

/* Modal */
.investment-modal {
  position: relative;
  background: #fff;
  border-radius: 0;
  max-width: 725px;
  width: 90%;
  aspect-ratio: 29 / 8.6;
  overflow: hidden;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.investment-modal-content {
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 100%;
  position: relative;
  gap: 30px;
}

.investment-modal-logo {
  flex: 1.5 1 0;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.investment-modal-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.investment-modal-divider {
  width: 1px;
  background: #e0e0e0;
  align-self: stretch;
  flex-shrink: 0;
}

.investment-modal-info {
  flex: 5 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.investment-modal-title {
  font-size: 20px;
  color: #333;
  font-weight: 500;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.investment-modal-description {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  text-align: justify;
  word-break: break-word;
}

.investment-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.investment-modal-close:hover {
  background: rgba(0,0,0,0.1);
  color: #333;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .investment-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .investment-section {
    padding: 40px 15px;
  }
}

@media screen and (max-width: 768px) {
  .investment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .investment-tabs {
    gap: 20px;
    margin-bottom: 30px;
  }

  .investment-tab {
    font-size: 15px;
    padding: 10px 16px;
  }

  .investment-tab::after {
    left: 16px;
    right: 16px;
  }

  .investment-card {
    padding: 6px 10px;
  }

  .investment-card-logo {
    height: auto;
    margin-bottom: 0;
  }

  .investment-card-name {
    font-size: 17px;
    margin-bottom: 19px;
  }

  .investment-modal {
    width: 95%;
    max-height: 85vh;
  }

  .investment-modal-content {
    padding: 0 20px;
    gap: 15px;
  }

  .investment-modal-logo {
    height: 70px;
  }

  .investment-modal-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .investment-modal-description {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .investment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .investment-tab {
    font-size: 14px;
    padding: 8px 12px;
  }

  .investment-card {
    padding: 6px 10px;
  }

  .investment-card-logo {
    height: auto;
    margin-bottom: 0;
  }

  .investment-card-name {
    font-size: 15px;
    margin-bottom: 19px;
  }

  .investment-modal-title {
    font-size: 18px;
  }

  .investment-modal-description {
    font-size: 14px;
  }
}
